src/Model/Attribute/Accessor/Scope.php
public function getScopes(): array
    {
        static $scopes;

        if (null === $scopes) {
            $scopes = [];
            $class = new ReflectionClass($this);

            foreach ($class->getConstants() as $constant => $value) {
                if ('SCOPE_' === substr($constant, 0, 6)) {
                    $scopes[] = $value;
                }
            }
        }

        return $scopes;
    }
public function getScopes(): array
    {
        static $scopes;

        if (null === $scopes) {
            $scopes = [];
            $class = new ReflectionClass($this);

            foreach ($class->getConstants() as $constant => $value) {
                if ('SCOPE_' === substr($constant, 0, 6)) {
                    $scopes[] = $value;
                }
            }
        }

        return $scopes;
    }
public function getScopes ( ) : array { static $ scopes ; if ( null === $ scopes ) { $ scopes = [ ] ; $ class = new ReflectionClass ( $ this ) ; foreach ( $ class -> getConstants ( ) as $ constant => $ value ) { if ( 'SCOPE_' === substr ( $ constant , 0 , 6 ) ) { $ scopes [ ] = $ value ; } } } return $ scopes ; }
Get scopes

@return array
Get scopes