lib/GitHub/Receiver/AbstractReceiver.php
public function getReceiver(string $name)
    {
        $classPath = explode('\\', get_called_class());
        $class     = (string)$this->getApi()
                                  ->sprintf(':namespace\:class\:method', __NAMESPACE__, end($classPath), $name);

        if (class_exists($class)) {
            return new $class($this);
        }

        return null;
    }
public function getReceiver(string $name)
    {
        $classPath = explode('\\', get_called_class());
        $class     = (string)$this->getApi()
                                  ->sprintf(':namespace\:class\:method', __NAMESPACE__, end($classPath), $name);

        if (class_exists($class)) {
            return new $class($this);
        }

        return null;
    }
public function getReceiver ( string $ name ) { $ classPath = explode ( '\\' , get_called_class ( ) ) ; $ class = ( string ) $ this -> getApi ( ) -> sprintf ( ':namespace\:class\:method' , __NAMESPACE__ , end ( $ classPath ) , $ name ) ; if ( class_exists ( $ class ) ) { return new $ class ( $ this ) ; } return null ; }
Get a sub-receiver

@param string $name

@return null|object
Get a sub - receiver