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