setData()
setData(array $data) : \Charcoal\Source\Order
Parameters
array | $data | The order data. |
Returns
\Charcoal\Source\Order —Chainable
setData(array $data) : \Charcoal\Source\Order
array | $data | The order data. |
Chainable
setProperty(string $property) : \Charcoal\Source\Order
string | $property | The property to order with. |
(Chainable)
setMode(string $mode) : \Charcoal\Source\Order
string | $mode | The order mode. |
Chainable
setValues(string|array $values) : \Charcoal\Source\Order
Set the values.
Values are ignored if the mode is not "values"
If the $values
argument is a string, it will be split by ",".
If it is an array, the values will be used as is.
Otherwise, the function will throw an error
string|array | $values | The order values. |
(Chainable)