public function createTerm(string $term, string $taxonomy, array $args = []): array
    {
        $args['taxonomy'] = $taxonomy;
        $args['term'] = $term;

        $term = $this->getDriver()->term->create($args);

        return array(
            'id'   => $term->term_id,
            'slug' => $term->slug
        );
    }
public function createTerm(string $term, string $taxonomy, array $args = []): array
    {
        $args['taxonomy'] = $taxonomy;
        $args['term'] = $term;

        $term = $this->getDriver()->term->create($args);

        return array(
            'id'   => $term->term_id,
            'slug' => $term->slug
        );
    }
public function createTerm ( string $ term , string $ taxonomy , array $ args = [ ] ) : array { $ args [ 'taxonomy' ] = $ taxonomy ; $ args [ 'term' ] = $ term ; $ term = $ this -> getDriver ( ) -> term -> create ( $ args ) ; return array ( 'id' => $ term -> term_id , 'slug' => $ term -> slug ) ; }
Create a term in a taxonomy.

@param string $term
@param string $taxonomy
@param array  $args     Optional. Set the values of the new term.

@return array {
@type int $id Term ID.
@type string $slug Term slug.
}
Create a term in a taxonomy .