Library
Class

Library\CodeParser

class CodeParser

Source code parser

Constants

PARSE_CLASS

For a full class analyze

PARSE_METHOD

For a class method analyze

You must set $object_name as class:method

PARSE_FUNC

For a function analyze

Properties

$reflection
$builtInMethods

Methods

__construct(string $object_name = null, int $object_type = self::PARSE_CLASS)

Construct a code parser object

set_objectName($object_name = null)

get_objectName()

set_objectType($object_type = null)

get_objectType()

get_shortDescription($object_name = null, $object_type = null)

get_longDescription($object_name = null, $object_type = null)

Details

at line 67
public __construct(string $object_name = null, int $object_type = self::PARSE_CLASS)

Construct a code parser object

Parameters

string $object_name The name of the object to analyze
int $object_type A flag that must be a class constant

at line 77
public set_objectName($object_name = null)

Parameters

$object_name

at line 82
public get_objectName()

at line 87
public set_objectType($object_type = null)

Parameters

$object_type

at line 92
public get_objectType()

at line 97
public get_shortDescription($object_name = null, $object_type = null)

Parameters

$object_name
$object_type

at line 105
public get_longDescription($object_name = null, $object_type = null)

Parameters

$object_name
$object_type