protected static function getMethodPropertyDoc($method, $object = null, $type = self::REFLECTION_METHOD, $parseMethod = self::DOC_COMMENT_SHORT)
    {
        try {
            //Method is already a \ReflectionMethod|\ReflectionProperty
            if ($method instanceof \ReflectionMethod || $method instanceof \ReflectionProperty) {
                $reflection = $method;
            //Method is string
            } else {
                //Check that object is not a \ReflectionClass
                $object = $object instanceof \ReflectionClass ? $object->getName() : $object;
                $reflection = $type === static::REFLECTION_METHOD
                    ? new \ReflectionMethod($object, $method)
                    : new \ReflectionProperty($object, $method);
            }
            $docData = static::$parseMethod($reflection);
        } catch (\ReflectionException $exception) {
            $docData = null;
        }
        return $docData;
    }
protected static function getMethodPropertyDoc($method, $object = null, $type = self::REFLECTION_METHOD, $parseMethod = self::DOC_COMMENT_SHORT)
    {
        try {
            //Method is already a \ReflectionMethod|\ReflectionProperty
            if ($method instanceof \ReflectionMethod || $method instanceof \ReflectionProperty) {
                $reflection = $method;
            //Method is string
            } else {
                //Check that object is not a \ReflectionClass
                $object = $object instanceof \ReflectionClass ? $object->getName() : $object;
                $reflection = $type === static::REFLECTION_METHOD
                    ? new \ReflectionMethod($object, $method)
                    : new \ReflectionProperty($object, $method);
            }
            $docData = static::$parseMethod($reflection);
        } catch (\ReflectionException $exception) {
            $docData = null;
        }
        return $docData;
    }
protected static function getMethodPropertyDoc ( $ method , $ object = null , $ type = self :: REFLECTION_METHOD , $ parseMethod = self :: DOC_COMMENT_SHORT ) { try { //Method is already a \ReflectionMethod|\ReflectionProperty if ( $ method instanceof \ ReflectionMethod || $ method instanceof \ ReflectionProperty ) { $ reflection = $ method ; //Method is string } else { //Check that object is not a \ReflectionClass $ object = $ object instanceof \ ReflectionClass ? $ object -> getName ( ) : $ object ; $ reflection = $ type === static :: REFLECTION_METHOD ? new \ ReflectionMethod ( $ object , $ method ) : new \ ReflectionProperty ( $ object , $ method ) ; } $ docData = static :: $ parseMethod ( $ reflection ) ; } catch ( \ ReflectionException $ exception ) { $ docData = null ; } return $ docData ; }
Get method or property PHPDoc parsed
@param string|\ReflectionMethod|\ReflectionProperty $method
@param object|null                                  $object
@param string                                       $type
@param string                                       $parseMethod
@return string|array|null
Get method or property PHPDoc parsed