PHP Interface gossi\codegen\model\PropertiesInterface

Mostra file Open project: gossi/php-code-generator Interface Usage Examples

Public Methods

Method Description
clearProperties ( ) Clears all properties
getProperties ( ) : 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

Method Details

clearProperties() public method

Clears all properties
public clearProperties ( )

getProperties() public method

Returns a collection of properties
public getProperties ( ) : Map
return Map

getProperty() public method

Returns a property
public getProperty ( string $nameOrProperty ) : PhpProperty
$nameOrProperty string property name
return PhpProperty

getPropertyNames() public method

Returns all property names
public getPropertyNames ( ) : Set
return Set

hasProperty() public method

Checks whether a property exists
public hasProperty ( PhpProperty | string $nameOrProperty ) : boolean
$nameOrProperty PhpProperty | string property name or instance
return boolean `true` if a property exists and `false` if not

removeProperty() public method

Removes a property
public removeProperty ( PhpProperty | string $nameOrProperty )
$nameOrProperty PhpProperty | string property name or instance

setProperties() public method

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

setProperty() public method

Adds a property
public setProperty ( PhpProperty $property )
$property PhpProperty