PHP Trait Bluz\Common\Container\Container

Show file Open project: bluzphp/framework

Protected Properties

Property Type Description
$container Container of elements

Public Methods

Method Description
resetArray ( ) : self Reset container array
setFromArray ( array $data ) : self Sets all data in the row from an array
toArray ( ) : array Returns the column/value data as an array

Protected Methods

Method Description
doContainsContainer ( string $key ) : boolean Check contains key in container
doDeleteContainer ( string $key ) : void Delete value by key
doGetContainer ( string $key ) : mixed Get value by key
doSetContainer ( string $key, mixed $value ) : void Set key/value pair

Method Details

doContainsContainer() protected method

Check contains key in container
protected doContainsContainer ( string $key ) : boolean
$key string
return boolean

doDeleteContainer() protected method

Delete value by key
protected doDeleteContainer ( string $key ) : void
$key string
return void

doGetContainer() protected method

Get value by key
protected doGetContainer ( string $key ) : mixed
$key string
return mixed

doSetContainer() protected method

Set key/value pair
protected doSetContainer ( string $key, mixed $value ) : void
$key string
$value mixed
return void

resetArray() public method

Reset container array
public resetArray ( ) : self
return self

setFromArray() public method

Sets all data in the row from an array
public setFromArray ( array $data ) : self
$data array
return self

toArray() public method

Returns the column/value data as an array
public toArray ( ) : array
return array

Property Details

$container protected property

Container of elements
protected $container