예제 #1
0
 public function __construct(TypeInterface $type)
 {
     $this->partial = $type->getSlug() . '-all';
     $this->path = $type->getPath();
 }
예제 #2
0
파일: Type.php 프로젝트: daspete/labcoat
 public function __construct(SourceTypeInterface $type)
 {
     $this->name = $type->getPath();
 }
예제 #3
0
 public function addType(SourceType $type)
 {
     $name = $this->getTypeFromPath($type->getPath());
     $this->types[$name] = new Type($type);
     ksort($this->types);
 }