Beispiel #1
0
 public function __construct(TypeInterface $type)
 {
     $this->partial = $type->getSlug() . '-all';
     $this->path = $type->getPath();
 }
Beispiel #2
0
 public function __construct(SourceTypeInterface $type)
 {
     $this->name = $type->getPath();
 }
Beispiel #3
0
 public function addType(SourceType $type)
 {
     $name = $this->getTypeFromPath($type->getPath());
     $this->types[$name] = new Type($type);
     ksort($this->types);
 }