Putting publicly visible properties before private ones is something new to 
me.

On Sunday, June 4, 2017 at 4:19:38 PM UTC+3, Кирилл Фрейман wrote:
>
> 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/211769db-61a6-4fb4-85fd-60c3508f78ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to