/** * @param \BetterReflection\Reflection\ReflectionMethod $method * @param string $displayNameFormat * * @return string */ public function mergeMethodNameWithShortDescription(ReflectionMethod $method, $displayNameFormat = '%s') { $doc = new DocBlock($method->getDocComment()); $displayName = sprintf($displayNameFormat, $method->getShortName()); return $this->mergeNameWithShortDescription($method->getShortName(), $doc, $displayName); }
/** * {@inheritDoc} */ public function getShortName() { return $this->betterReflectionMethod->getShortName(); }
/** * Call a placeholder method with the Call object and parameters extracted from the raw template call. */ public function call(Call $call) { $callable = [$this->placeholder, $this->method->getShortName()]; $params = array_merge([$call], $call->getParameters()); call_user_func_array($callable, $params); }