Esempio n. 1
0
 /**
  * @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();
 }
Esempio n. 3
0
 /**
  * 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);
 }