Add an item to a list
public static add ( object $entity, string $property, object $value, string $getter = null, string $setter = null ) | ||
$entity | object | |
$property | string | Property name to add to, not needed if providing both a getter and setter |
$value | object | Value to add |
$getter | string | Custom getter name |
$setter | string | Custom setter name |