| 1 | <?php |
||
| 7 | class OnCreateEntityDefineFieldValuesEventArgs extends AbstractOnCreateEntityEventArgs |
||
| 8 | { |
||
| 9 | const EVENT_NAME = 'onCreateEntityDefineFieldValues'; |
||
| 10 | |||
| 11 | /** @var object */ |
||
| 12 | protected $entity; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $definedFieldValues = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param EntityManagerInterface $em |
||
| 19 | * @param string $className |
||
| 20 | * @param array $data |
||
| 21 | * @param array $hints |
||
| 22 | * @param object $entity |
||
| 23 | */ |
||
| 24 | public function __construct( |
||
| 34 | |||
| 35 | /** @return object */ |
||
| 36 | public function getEntity() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $field |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function addDefinedFieldValue($field) |
||
| 51 | |||
| 52 | /** @return string[] */ |
||
| 53 | public function getDefinedFieldValues() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $field |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | public function isValueDefined($field) |
||
| 66 | } |
||
| 67 |