.. _functions-hasnotfluentinterface: .. _method-is-not-for-fluent-interface: Method Is Not For Fluent Interface ++++++++++++++++++++++++++++++++++ Mark a method when it contains at least one return that doesn't return `$this `_. Such method cannot be used for fluent interface, which always require the current object to be returned. Null is not accepted here: it would `break `_ the execution of the method call chains if it was returned. .. code-block:: php Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Functions/HasNotFluentInterface | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Features | method, fluent-interface | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+