/** * Returns the modifier method prefix * * @param Method $method * * @return string */ private function getModifiersString(Method $method) { $modifiers = array(); if ($method->isAbstract()) { $modifiers[] = 'abstract'; } if ($method->isFinal()) { $modifiers[] = 'final'; } $modifiers[] = $method->getVisibility(); if ($method->isStatic()) { $modifiers[] = 'static'; } return implode(' ', $modifiers); }
public function testIsAndGetFinal() { $this->method->setFinal(true); $this->assertTrue($this->method->isFinal()); }