I don't think this detail is worth standardising, ordering is very
situational and can bear a lot of different semantics.
We can surely leave this to common user conventions.

Il giorno gio 8 giu 2017 alle ore 10:58 'Alexander Makarov' via PHP
Framework Interoperability Group <[email protected]> ha scritto:

> 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
> <https://groups.google.com/d/msgid/php-fig/211769db-61a6-4fb4-85fd-60c3508f78ac%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFojS1s1vNEX3pfEU1rY%2Bc72feduU%2B_03SZpFD1XsD9n8Kd-Pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to