| 1 | <?php |
||
| 12 | abstract class AbstractCustomEntity extends AbstractReferenceData |
||
| 13 | { |
||
| 14 | /** @var \DateTime */ |
||
| 15 | protected $created; |
||
| 16 | |||
| 17 | /** @var \DateTime */ |
||
| 18 | protected $updated; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function getReference() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return \DateTime |
||
| 30 | */ |
||
| 31 | public function getCreated() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return \DateTime |
||
| 38 | */ |
||
| 39 | public function getUpdated() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param \DateTime $created |
||
| 46 | * |
||
| 47 | * @return AbstractCustomEntity |
||
| 48 | */ |
||
| 49 | public function setCreated(\DateTime $created) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param \DateTime $updated |
||
| 58 | * |
||
| 59 | * @return AbstractCustomEntity |
||
| 60 | */ |
||
| 61 | public function setUpdated(\DateTime $updated) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Returns the custom entity name used in the configuration |
||
| 70 | * Used to map row actions on datagrid |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | abstract public function getCustomEntityName(); |
||
| 75 | |||
| 76 | /** |
||
| 77 | * {@inheritdoc} |
||
| 78 | */ |
||
| 79 | public static function getLabelProperty() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * Returns the sort order |
||
| 86 | * |
||
| 87 | * @return string |
||
| 88 | */ |
||
| 89 | public static function getSortOrderColumn() |
||
| 93 | } |
||
| 94 |