Everyone knows that php only has one $ a when declaring a variable, so IDE does not know what its data type is. If it is a class instance, $ anewClass (); then the IDE will know that it is a class instance and prompt the class attributes and methods when you write code. However, when
Everyone knows that php only has one $ a when declaring a variable, so IDE does not know what its data type is. If it is a class instance, $ a = new Class (); then the IDE will know that it is a Class instance, and you will be able to prompt the Class attributes and methods when writing code. However, when
We all know that php isDataTypeSo when declaring a variable, there is only one $ a, so IDE does not know itsDataTypeWhat is
If he is an instance of a Class, $ a = new Class (); then the IDE will know that he is an instance of a Class, so that when you write code,PromptClass attributes and methods.
However, when your instance $ a is returned by a function, such as the Factory mode or Singleton mode, your $ a = Factory:: getClass ();
At this time, IDE does not know him, and does not provide attributes and methods.Prompt. This affects the encoding speed.
Is there any as syntax like C #?Prompt. Or is there any good solution?