public function getTargetController()
    {
        $target = $this->getTarget();
        if ($target instanceof Closure ||
                !preg_match(Router::TARGET_REGEX, $target)) {
            return null;
        }
        $parts = explode('@', $target);
        return isset($parts[0]) ? $parts[0] : null;
    }
public function getTargetController()
    {
        $target = $this->getTarget();
        if ($target instanceof Closure ||
                !preg_match(Router::TARGET_REGEX, $target)) {
            return null;
        }
        $parts = explode('@', $target);
        return isset($parts[0]) ? $parts[0] : null;
    }
public function getTargetController ( ) { $ target = $ this -> getTarget ( ) ; if ( $ target instanceof Closure || ! preg_match ( Router :: TARGET_REGEX , $ target ) ) { return null ; } $ parts = explode ( '@' , $ target ) ; return isset ( $ parts [ 0 ] ) ? $ parts [ 0 ] : null ; }
Gets the matched controller class
@return string|null
Gets the matched controller class