.. _classes-couldbeprotectedproperty: .. _could-be-protected-property: Could Be Protected Property +++++++++++++++++++++++++++ Those properties are declared public, but are never used publicly. They may be made protected. This property may even be made private. .. code-block:: php protectedProperty = 1; } } $foo = new Foo(); $foo->publicProperty = 3; ?> Connex PHP features ------------------- + `visibility `_ Suggestions ___________ * Use protected visibility with these properties. Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Short name | Classes/CouldBeProtectedProperty | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Class Review ` | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.9.7 | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------+