Exemplo n.º 1
0
 public function walk($value, Type $type)
 {
     if ($value instanceof \Psc\Data\Exportable) {
         return $value->export();
     }
     if ($type instanceof ObjectType && $value === NULL) {
         return NULL;
     }
     return parent::walk($value, $type);
 }
Exemplo n.º 2
0
 public function walk($value, Type $type)
 {
     if ($value instanceof DoctrineAnnotation || $value instanceof PscAnnotation) {
         return $this->writeAnnotation($value);
     }
     return parent::walk($value, $type);
 }