/** * @return \ReflectionFunctionAbstract|null */ protected function createReflection() { if (method_exists($this->getClass(), $this->getName())) { return Reflection::getClassMethod($this->getClass(), $this->getName()); } return null; }