source/Spiral/Models/SchematicEntity.php 1 location
|
@@ 71-78 (lines=8) @@
|
| 68 |
|
/** |
| 69 |
|
* {@inheritdoc} |
| 70 |
|
*/ |
| 71 |
|
protected function getMutator(string $field, string $mutator) |
| 72 |
|
{ |
| 73 |
|
if (isset($this->schema[self::SH_MUTATORS][$mutator][$field])) { |
| 74 |
|
return $this->schema[self::SH_MUTATORS][$mutator][$field]; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return null; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
/** |
| 81 |
|
* Method used while entity static analysis to describe model related property using even |
source/Spiral/ODM/DocumentEntity.php 1 location
|
@@ 343-353 (lines=11) @@
|
| 340 |
|
/** |
| 341 |
|
* {@inheritdoc} |
| 342 |
|
*/ |
| 343 |
|
protected function getMutator(string $field, string $mutator) |
| 344 |
|
{ |
| 345 |
|
/** |
| 346 |
|
* Every document composition is valid accessor but defined a bit differently. |
| 347 |
|
*/ |
| 348 |
|
if (isset($this->schema[self::SH_COMPOSITIONS][$field])) { |
| 349 |
|
return $this->schema[self::SH_COMPOSITIONS][$field]; |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
return parent::getMutator($field, $mutator); |
| 353 |
|
} |
| 354 |
|
|
| 355 |
|
/** |
| 356 |
|
* {@inheritdoc} |