Ejemplo n.º 1
0
 public function __call($method, array $params = array())
 {
     $prop = mb_strtolower(mb_substr($method, 3, 1)) . mb_substr($method, 4);
     // ucfirst in mb_string
     if (s::startsWith($method, 'get')) {
         return $this->get($prop);
     } elseif (s::startsWith($method, 'set')) {
         return $this->set($prop, $params[0]);
     } else {
         throw new \Psc\Exception('Undefined Method: ' . __CLASS__ . '::' . $method);
     }
 }