src/State/StateTrait.php
private function getReflectionClass(): \ReflectionClass
    {
        if (null === $this->reflectionClass) {
            $this->reflectionClass = new \ReflectionClass(\get_class($this));
        }

        return $this->reflectionClass;
    }
private function getReflectionClass(): \ReflectionClass
    {
        if (null === $this->reflectionClass) {
            $this->reflectionClass = new \ReflectionClass(\get_class($this));
        }

        return $this->reflectionClass;
    }
private function getReflectionClass ( ) : \ ReflectionClass { if ( null === $ this -> reflectionClass ) { $ this -> reflectionClass = new \ ReflectionClass ( \ get_class ( $ this ) ) ; } return $ this -> reflectionClass ; }
To build the ReflectionClass for the current object.

@api

@return \ReflectionClass

@throws \ReflectionException
To build the ReflectionClass for the current object .