PHP 트레잇 gossi\codegen\model\parts\PropertiesPart

For all models that can have properties
저자: Thomas Gossmann
파일 보기 프로젝트 열기: gossi/php-code-generator

공개 메소드들

메소드 설명
clearProperties ( ) Clears all properties
getProperties ( ) : phootwork\collection\Map Returns a collection of properties
getProperty ( string $nameOrProperty ) : PhpProperty Returns a property
getPropertyNames ( ) : Set Returns all property names
hasProperty ( PhpProperty | string $nameOrProperty ) : boolean Checks whether a property exists
removeProperty ( PhpProperty | string $nameOrProperty ) Removes a property
setProperties ( array $properties ) Sets a collection of properties
setProperty ( PhpProperty $property ) Adds a property

비공개 메소드들

메소드 설명
initProperties ( )

메소드 상세

clearProperties() 공개 메소드

Clears all properties
public clearProperties ( )

getProperties() 공개 메소드

Returns a collection of properties
public getProperties ( ) : phootwork\collection\Map
리턴 phootwork\collection\Map

getProperty() 공개 메소드

Returns a property
public getProperty ( string $nameOrProperty ) : PhpProperty
$nameOrProperty string property name
리턴 gossi\codegen\model\PhpProperty

getPropertyNames() 공개 메소드

Returns all property names
public getPropertyNames ( ) : Set
리턴 Set

hasProperty() 공개 메소드

Checks whether a property exists
public hasProperty ( PhpProperty | string $nameOrProperty ) : boolean
$nameOrProperty gossi\codegen\model\PhpProperty | string property name or instance
리턴 boolean `true` if a property exists and `false` if not

removeProperty() 공개 메소드

Removes a property
public removeProperty ( PhpProperty | string $nameOrProperty )
$nameOrProperty gossi\codegen\model\PhpProperty | string property name or instance

setProperties() 공개 메소드

Sets a collection of properties
public setProperties ( array $properties )
$properties array

setProperty() 공개 메소드

Adds a property
public setProperty ( PhpProperty $property )
$property gossi\codegen\model\PhpProperty