Option
+ Inheritance diagram for Option:

Public Methods

magic string getId ()
 
Traversable string[] getIterator ()
 
magic string getName ()
 
magic int getPosition ()
 
magic string getProductId ()
 
magic string[] getValues ()
 
magic $this setName (string $name)
 
magic $this setValues (string[] $values)
 
- Public Methods inherited from Data
mixed __call (string $method, array $args)
 
 __construct ($caller, array $data=[])
 
string serialize ()
 Dehydrated JSON encode. More...
 
array toArray ()
 
void unserialize ($serialized)
 

Additional Inherited Members

- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 
- Protected Properties inherited from Data
Api $api
 
Pool $pool
 
- Protected Methods inherited from Data
mixed _hydrate (string $class, $item)
 A factory that also hydrates / caches entities. More...
 
array _select ($subject, callable $filter,... $args)
 Magic method: selectField(callable $filter) More...
 
$this _setData (array $data)
 Clears all diffs and sets all data, hydrating mapped fields. More...
 
$this _setField (string $field, $value)
 Sets a value, hydrating if mapped, and clears the diff. More...
 

Methods

◆ getId()

magic string getId ( )
Returns
string

◆ getIterator()

Traversable string [] getIterator ( )
Returns
Traversable|string[]

◆ getName()

magic string getName ( )
Returns
string

◆ getPosition()

magic int getPosition ( )
Returns
int

◆ getProductId()

magic string getProductId ( )
Returns
string

◆ getValues()

magic string [] getValues ( )
Returns
string[]

◆ setName()

magic $this setName ( string  $name)
Returns
$this

◆ setValues()

magic $this setValues ( string[]  $values)
Returns
$this