Exemplo n.º 1
0
 /** @return Method */
 public function addMethod($name)
 {
     $method = new Method();
     if ($this->type === 'interface') {
         $method->setVisibility('')->setBody(false);
     } else {
         $method->setVisibility('public');
     }
     return $this->methods[$name] = $method->setName($name);
 }
Exemplo n.º 2
0
Property;return$this->properties[$name]=$property->setName($name)->setValue($value);}function
addMethod($name){$method=new
Method;if($this->type==='interface'){$method->setVisibility('')->setBody(FALSE);}else{$method->setVisibility('public');}return$this->methods[$name]=$method->setName($name);}function