public static function result($object, $property)
    {
        $value = static::get($object, $property);

        if (static::isFunction($value)) {
            static::associate($value, $object);
            return $value();
        }

        return $value;
    }
public static function result($object, $property)
    {
        $value = static::get($object, $property);

        if (static::isFunction($value)) {
            static::associate($value, $object);
            return $value();
        }

        return $value;
    }
public static function result ( $ object , $ property ) { $ value = static :: get ( $ object , $ property ) ; if ( static :: isFunction ( $ value ) ) { static :: associate ( $ value , $ object ) ; return $ value ( ) ; } return $ value ; }
If the value of the named property is a function then invoke it with the object as context; otherwise, return
it.

@category Utility Functions

@param object,array $object the object or array
@param scalar $property the property to get

@return mixed
If the value of the named property is a function then invoke it with the object as context ; otherwise return it .