source/Spiral/ORM/Configs/ORMConfig.php 1 location
|
@@ 57-64 (lines=8) @@
|
| 54 |
|
* @param string $mutator |
| 55 |
|
* @return string |
| 56 |
|
*/ |
| 57 |
|
public function mutatorAlias($mutator) |
| 58 |
|
{ |
| 59 |
|
if (!is_string($mutator) || !isset($this->config['mutatorAliases'][$mutator])) { |
| 60 |
|
return $mutator; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
return $this->config['mutatorAliases'][$mutator]; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
/** |
| 67 |
|
* Get list of mutators associated with given type. |
source/Spiral/ODM/Configs/ODMConfig.php 1 location
|
@@ 72-79 (lines=8) @@
|
| 69 |
|
* @param string $mutator |
| 70 |
|
* @return string |
| 71 |
|
*/ |
| 72 |
|
public function mutatorAlias($mutator) |
| 73 |
|
{ |
| 74 |
|
if (!is_string($mutator) || !isset($this->config['mutatorAliases'][$mutator])) { |
| 75 |
|
return $mutator; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
return $this->config['mutatorAliases'][$mutator]; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
/** |
| 82 |
|
* Get list of mutators associated with given type. |