Search code examples
phpphpstorm

What is a "field" in PhpStorm?


I am reading about "Extracting fields", but I was not able to find any information on what a "field" is on the Net.

https://www.jetbrains.com/help/phpstorm/extract-field.html

What could be a definition of a PhpStorm "field", so I can understand its meaning?


Solution

  • A "Field" is a variable of a class. It can be a static or belong to an instance of that class. Take a look at this post, it contains a discussion on the same topic.