I am also fine with leaving this unspecified. There's too many cases where I want to group things "logically", in a contextually-dependent way.

At best I could see "constants, then properties, then methods", but that's as far as I think it's reasonable to go and I'd be fine with not even doing that much.

--Larry Garfield

On 06/08/2017 04:42 AM, Stefano Torresi wrote:
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] <mailto:[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]
    <mailto:[email protected]>.
    To post to this group, send email to [email protected]
    <mailto:[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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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 <https://groups.google.com/d/msgid/php-fig/CAFojS1s1vNEX3pfEU1rY%2Bc72feduU%2B_03SZpFD1XsD9n8Kd-Pg%40mail.gmail.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/611d0c4a-6e1d-9b59-bc9d-78e9ebc9000c%40garfieldtech.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to