| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | abstract class PropertyMappingMarkerBase extends SlumberAnnotation implements PropertyMappingMarker |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Set an alias for this field. The alias will be used for storing the value in the database. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $alias; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | 46 | public function getValue() |
|
| 27 | { |
||
| 28 | 46 | return $this->value; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 10 | public function getAlias() |
|
| 35 | { |
||
| 36 | 10 | return $this->alias; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | 36 | public function hasAlias() |
|
| 43 | { |
||
| 44 | 36 | return ! empty($this->alias); |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | 48 | public function keepNullValuesInCollections() |
|
| 53 | } |
||
| 54 | } |
||
| 55 |