src/DoctrineStaticMeta.php
public function getGetters(): array
    {
        if (null !== $this->getters) {
            return $this->getters;
        }
        $skip = [
            'getEntityFqn'          => true,
            'getDoctrineStaticMeta' => true,
            'isValid'               => true,
            'getValidator'          => true,
        ];

        $this->getters   = [];
        $reflectionClass = $this->getReflectionClass();
        foreach ($reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
            $methodName = $method->getName();
            if (isset($skip[$methodName])) {
                continue;
            }
            if (\ts\stringStartsWith($methodName, 'get')) {
                $this->getters[] = $methodName;
                continue;
            }
            if (\ts\stringStartsWith($methodName, 'is')) {
                $this->getters[] = $methodName;
                continue;
            }
            if (\ts\stringStartsWith($methodName, 'has')) {
                $this->getters[] = $methodName;
                continue;
            }
        }

        return $this->getters;
    }
public function getGetters(): array
    {
        if (null !== $this->getters) {
            return $this->getters;
        }
        $skip = [
            'getEntityFqn'          => true,
            'getDoctrineStaticMeta' => true,
            'isValid'               => true,
            'getValidator'          => true,
        ];

        $this->getters   = [];
        $reflectionClass = $this->getReflectionClass();
        foreach ($reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
            $methodName = $method->getName();
            if (isset($skip[$methodName])) {
                continue;
            }
            if (\ts\stringStartsWith($methodName, 'get')) {
                $this->getters[] = $methodName;
                continue;
            }
            if (\ts\stringStartsWith($methodName, 'is')) {
                $this->getters[] = $methodName;
                continue;
            }
            if (\ts\stringStartsWith($methodName, 'has')) {
                $this->getters[] = $methodName;
                continue;
            }
        }

        return $this->getters;
    }
public function getGetters ( ) : array { if ( null !== $ this -> getters ) { return $ this -> getters ; } $ skip = [ 'getEntityFqn' => true , 'getDoctrineStaticMeta' => true , 'isValid' => true , 'getValidator' => true , ] ; $ this -> getters = [ ] ; $ reflectionClass = $ this -> getReflectionClass ( ) ; foreach ( $ reflectionClass -> getMethods ( \ ReflectionMethod :: IS_PUBLIC ) as $ method ) { $ methodName = $ method -> getName ( ) ; if ( isset ( $ skip [ $ methodName ] ) ) { continue ; } if ( \ ts \ stringStartsWith ( $ methodName , 'get' ) ) { $ this -> getters [ ] = $ methodName ; continue ; } if ( \ ts \ stringStartsWith ( $ methodName , 'is' ) ) { $ this -> getters [ ] = $ methodName ; continue ; } if ( \ ts \ stringStartsWith ( $ methodName , 'has' ) ) { $ this -> getters [ ] = $ methodName ; continue ; } } return $ this -> getters ; }
Get an array of getters by name

@return array|string[]
@throws \ReflectionException
Get an array of getters by name