PHP Class Webiny\Component\Rest\Parser\ParsedClass

显示文件 Open project: Webiny/Framework Class Usage Examples

Public Properties

Property Type Description
$accessInterface A boolean value telling if the class has implemented the AccessInterface.
$cacheKeyInterface A boolean value telling if the class has implemented the cacheKeyInterface.
$class Name of the class.
$parsedMethods A list of ParsedMethod instances.

Public Methods

Method Description
__construct ( string $class ) Base constructor.
addApiMethod ( ParsedMethod $parsedMethod ) Adds an instance of ParsedMethod.
getMethods ( ) : array Returns a list of all parsed methods.

Method Details

__construct() public method

Base constructor.
public __construct ( string $class )
$class string Name of the class.

addApiMethod() public method

Adds an instance of ParsedMethod.
public addApiMethod ( ParsedMethod $parsedMethod )
$parsedMethod ParsedMethod

getMethods() public method

Returns a list of all parsed methods.
public getMethods ( ) : array
return array

Property Details

$accessInterface public_oe property

A boolean value telling if the class has implemented the AccessInterface.
public $accessInterface

$cacheKeyInterface public_oe property

A boolean value telling if the class has implemented the cacheKeyInterface.
public $cacheKeyInterface

$class public_oe property

Name of the class.
public $class

$parsedMethods public_oe property

A list of ParsedMethod instances.
public $parsedMethods