Esempio n. 1
0
File: Base.php Progetto: jgswift/qub
 /**
  * call magic defaults to ask OR tell transformation 
  * depending on whether arguments are provided
  * @param string $name
  * @param array $arguments
  * @return mixed
  */
 public function __call($name, $arguments = [])
 {
     if (count($arguments) === 0) {
         return $this->system->ask($this->subject, $name);
     } else {
         return $this->system->tell($this->subject, $name, $arguments);
     }
 }