src/Entities/PostType.php
public function addTaxonomy($name, $args = [])
    {
        $taxonomy = new Taxonomy($name, $this->name, $args);

        return $this;
    }
public function addTaxonomy($name, $args = [])
    {
        $taxonomy = new Taxonomy($name, $this->name, $args);

        return $this;
    }
public function addTaxonomy ( $ name , $ args = [ ] ) { $ taxonomy = new Taxonomy ( $ name , $ this -> name , $ args ) ; return $ this ; }
Add a taxonomy to the Post Type.

@param string|array $name
@param array        $args
Add a taxonomy to the Post Type .