Hi everyone!
In PHP de-facto exists some best practice of ordering methods and
properties.
It seems to me that this order is most common:
Constants
public const
protected const
private const
Properties
public static properties
public properties
protected static properties
protected properties
private static properties
private properties
Methods
magic methods
public static methods
public methods
protected static methods
protected methods
private static methods
private methods
Should we standartize it?
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/405fd2f3-c81a-4eca-8058-433cbcaf6488%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.