public hasGetMutator ( string $key ) : boolean | ||
$key | string | |
return | boolean |
public function hasGetMutator($key)
{
$jsonPattern = '/' . implode('|', self::$jsonOperators) . '/';
if (array_key_exists($key, $this->jsonAttributes) !== false) {
return true;
} elseif (preg_match($jsonPattern, $key) != false) {
return true;
}
return parent::hasGetMutator($key);
}