setName() 공개 메소드

사용 중단:
public setName ( $name )
예제 #1
0
파일: ClassType.php 프로젝트: jave007/test
 /**
  * @param  string
  * @return Method
  */
 public function addMethod($name)
 {
     $method = new Method();
     if ($this->type === 'interface') {
         $method->setVisibility(NULL)->setBody(FALSE);
     } else {
         $method->setVisibility('public');
     }
     return $this->methods[$name] = $method->setName($name);
 }