Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 public function testIsAndGetAbstract()
 {
     $this->method->setAbstract(true);
     $this->assertTrue($this->method->isAbstract());
 }