PHP 클래스 Pop\Code\Generator\InterfaceGenerator

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$docblock DocblockGenerator Docblock generator object
$indent string Class indent
$methods array Array of method generator objects
$name string Class name
$namespace NamespaceGenerator Namespace generator object
$output string Class output
$parent string Parent interface that is extended

공개 메소드들

메소드 설명
__construct ( string $name, string $parent = null ) : InterfaceGenerator Constructor
__toString ( ) : string Print method
addMethod ( MethodGenerator $method ) : ClassGenerator Add a class method
factory ( string $name, string $parent = null ) : InterfaceGenerator Static method to instantiate the interface generator object and return itself to facilitate chaining methods together.
getDocblock ( ) : DocblockGenerator Access the docblock generator object
getIndent ( ) : string Get the interface indent
getMethod ( mixed $method ) : /Pop\Code\MethodGenerator Get a method property
getName ( ) : string Get the interface name
getNamespace ( ) : NamespaceGenerator Access the namespace generator object
getParent ( ) : string Get the interface parent
removeMethod ( mixed $method ) : ClassGenerator Remove a method property
render ( boolean $ret = false ) : mixed Render method
setDocblock ( DocblockGenerator $docblock ) : ClassGenerator Set the docblock generator object
setIndent ( string $indent = null ) : InterfaceGenerator Set the interface indent
setName ( string $name ) : InterfaceGenerator Set the interface name
setNamespace ( NamespaceGenerator $namespace ) : ClassGenerator Set the namespace generator object
setParent ( string $parent = null ) : InterfaceGenerator Set the interface parent

보호된 메소드들

메소드 설명
formatMethods ( ) : string Method to format the methods

메소드 상세

__construct() 공개 메소드

Instantiate the interface generator object
public __construct ( string $name, string $parent = null ) : InterfaceGenerator
$name string
$parent string
리턴 InterfaceGenerator

__toString() 공개 메소드

Print method
public __toString ( ) : string
리턴 string

addMethod() 공개 메소드

Add a class method
public addMethod ( MethodGenerator $method ) : ClassGenerator
$method MethodGenerator
리턴 ClassGenerator

factory() 공개 정적인 메소드

Static method to instantiate the interface generator object and return itself to facilitate chaining methods together.
public static factory ( string $name, string $parent = null ) : InterfaceGenerator
$name string
$parent string
리턴 InterfaceGenerator

formatMethods() 보호된 메소드

Method to format the methods
protected formatMethods ( ) : string
리턴 string

getDocblock() 공개 메소드

Access the docblock generator object
public getDocblock ( ) : DocblockGenerator
리턴 DocblockGenerator

getIndent() 공개 메소드

Get the interface indent
public getIndent ( ) : string
리턴 string

getMethod() 공개 메소드

Get a method property
public getMethod ( mixed $method ) : /Pop\Code\MethodGenerator
$method mixed
리턴 /Pop\Code\MethodGenerator

getName() 공개 메소드

Get the interface name
public getName ( ) : string
리턴 string

getNamespace() 공개 메소드

Access the namespace generator object
public getNamespace ( ) : NamespaceGenerator
리턴 NamespaceGenerator

getParent() 공개 메소드

Get the interface parent
public getParent ( ) : string
리턴 string

removeMethod() 공개 메소드

Remove a method property
public removeMethod ( mixed $method ) : ClassGenerator
$method mixed
리턴 ClassGenerator

render() 공개 메소드

Render method
public render ( boolean $ret = false ) : mixed
$ret boolean
리턴 mixed

setDocblock() 공개 메소드

Set the docblock generator object
public setDocblock ( DocblockGenerator $docblock ) : ClassGenerator
$docblock DocblockGenerator
리턴 ClassGenerator

setIndent() 공개 메소드

Set the interface indent
public setIndent ( string $indent = null ) : InterfaceGenerator
$indent string
리턴 InterfaceGenerator

setName() 공개 메소드

Set the interface name
public setName ( string $name ) : InterfaceGenerator
$name string
리턴 InterfaceGenerator

setNamespace() 공개 메소드

Set the namespace generator object
public setNamespace ( NamespaceGenerator $namespace ) : ClassGenerator
$namespace NamespaceGenerator
리턴 ClassGenerator

setParent() 공개 메소드

Set the interface parent
public setParent ( string $parent = null ) : InterfaceGenerator
$parent string
리턴 InterfaceGenerator

프로퍼티 상세

$docblock 보호되어 있는 프로퍼티

Docblock generator object
protected DocblockGenerator,Pop\Code\Generator $docblock
리턴 DocblockGenerator

$indent 보호되어 있는 프로퍼티

Class indent
protected string $indent
리턴 string

$methods 보호되어 있는 프로퍼티

Array of method generator objects
protected array $methods
리턴 array

$name 보호되어 있는 프로퍼티

Class name
protected string $name
리턴 string

$namespace 보호되어 있는 프로퍼티

Namespace generator object
protected NamespaceGenerator,Pop\Code\Generator $namespace
리턴 NamespaceGenerator

$output 보호되어 있는 프로퍼티

Class output
protected string $output
리턴 string

$parent 보호되어 있는 프로퍼티

Parent interface that is extended
protected string $parent
리턴 string