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