lib/GitHub/WebHook.php
public function getEvent(string $event)
    {
        $class = (string)$this->sprintf(':namespace\Event\:event', __NAMESPACE__, $event);

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

        return null;
    }
public function getEvent(string $event)
    {
        $class = (string)$this->sprintf(':namespace\Event\:event', __NAMESPACE__, $event);

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

        return null;
    }
public function getEvent ( string $ event ) { $ class = ( string ) $ this -> sprintf ( ':namespace\Event\:event' , __NAMESPACE__ , $ event ) ; if ( class_exists ( $ class ) ) { return new $ class ( $ this ) ; } return null ; }
Returns Event object

@param string $event

@return null|EventInterface
Returns Event object