.. _classes-missingvisibility: .. _missing-visibility: Missing Visibility ++++++++++++++++++ Class constants, properties and methods usage may be controlled by the visibility option. When omitted, it is by default public. When omitted, it should be added to make its configuration explicit. .. code-block:: php See also `Visibility `_. Suggestions ___________ * Add the public visibility * Actually review the code and set a pragmatic visibility * Set the visibility to private and wait for a request of access Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Short name | Classes/MissingVisibility | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Class Review ` | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.3.5 | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Features | visibility | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Related rule | :ref:`ambiguous-visibilities` | +--------------+--------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------+