.. _classes-coulduseclassoperator: .. _could-use-class-operator: Could Use Class Operator ++++++++++++++++++++++++ The class operator is `\:\:class`. With a class name as left operator, it provides the full class name. Classes may also be identified with a string, as a fully qualified name. Using the class operator is a more explicit way to do it. The `\:\:class` operator works with the local use expressions. It also provides a string, which may be further processed. The class operator is also called the 'scope resolution operator'. .. code-block:: php See also `Scope Resolution Operator (::) `_. Connex PHP features ------------------- + `class-operator `_ Suggestions ___________ * Replace the string with the class operator Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Classes/CouldUseClassOperator | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Suggestions ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.5.0 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+