src/State/StateTrait.php
private function checkVisibilityPublic(string &$methodName): bool
    {
        if (true === $this->reflectionsMethods[$methodName]->isPublic()) {
            //It's a public method, do like if there is no method
            return true;
        }

        return false;
    }
private function checkVisibilityPublic(string &$methodName): bool
    {
        if (true === $this->reflectionsMethods[$methodName]->isPublic()) {
            //It's a public method, do like if there is no method
            return true;
        }

        return false;
    }
private function checkVisibilityPublic ( string & $ methodName ) : bool { if ( true === $ this -> reflectionsMethods [ $ methodName ] -> isPublic ( ) ) { //It's a public method, do like if there is no method return true ; } return false ; }
Can not access to protect and private method.

@param string $methodName

@return bool
Can not access to protect and private method .