コード例 #1
0
 /**
  * @param Entity $entity
  */
 public function visit(Entity $entity)
 {
     $type = $entity->getType();
     $class = $entity->getNamespacedName();
     $path = $this->getPsr4ClassPath($class);
     $entity->setPath($path);
     if (!isset($this->generators[$type])) {
         return;
     }
     $this->generators[$type]->visit($entity);
 }