PHP Трейт gossi\codegen\model\parts\PropertiesPart

For all models that can have properties
Автор: Thomas Gossmann
Показать файл Открыть проект

Открытые методы

Метод Описание
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