src/AbstractEntity.php
private function getMutated(string $name, bool $filter, $value)
    {
        $getter = $this->getMutator($name, self::MUTATOR_GETTER);

        if ($filter && !empty($getter)) {
            try {
                return call_user_func($getter, $value);
            } catch (\Exception $e) {
                //Trying to filter null value, every filter must support it
                return call_user_func($getter, null);
            }
        }

        return $value;
    }
private function getMutated(string $name, bool $filter, $value)
    {
        $getter = $this->getMutator($name, self::MUTATOR_GETTER);

        if ($filter && !empty($getter)) {
            try {
                return call_user_func($getter, $value);
            } catch (\Exception $e) {
                //Trying to filter null value, every filter must support it
                return call_user_func($getter, null);
            }
        }

        return $value;
    }
private function getMutated ( string $ name , bool $ filter , $ value ) { $ getter = $ this -> getMutator ( $ name , self :: MUTATOR_GETTER ) ; if ( $ filter && ! empty ( $ getter ) ) { try { return call_user_func ( $ getter , $ value ) ; } catch ( \ Exception $ e ) { //Trying to filter null value, every filter must support it return call_user_func ( $ getter , null ) ; } } return $ value ; }
Get value thought associated mutator.

@param string $name
@param bool   $filter
@param mixed  $value

@return mixed
Get value thought associated mutator .