Esempio n. 1
0
 public function get(Accessor $accessor, $field)
 {
     if (!property_exists($this, $field)) {
         throw new InvalidArgumentException(sprintf("%s has no property %s", get_class($this), $field));
     }
     return $accessor->convert($this, $field, $this->{$field}, Accessor::GETTER);
 }