/** * If income value is method function returns method invocation result * another way function return income value * * @param value * @return {@link Object} * @throws DocumentException */ public static function getValue($value) { /*Object*/ $result = $value; if (is_string($value)) { if (self::valueIsMethod($value)) { $dataUtils = new DataUtils(); $result = $dataUtils->getMethodResult($value); } } return $result; }