예제 #1
0
파일: Observer.php 프로젝트: plutonex/watch
 public function update(SubjectInterface $subject)
 {
     if (method_exists($this, $subject->getState())) {
         $subject->count();
         call_user_func_array(array($this, $subject->getState()), array($subject));
     }
     return false;
 }