private function convertTermsArray($terms, Taxonomy $taxonomy)
    {
        $res = array();

        foreach ($terms as $t) {
            $res[] = $this->termFactory->create($t, $taxonomy);
        }

        return $res;
    }
private function convertTermsArray($terms, Taxonomy $taxonomy)
    {
        $res = array();

        foreach ($terms as $t) {
            $res[] = $this->termFactory->create($t, $taxonomy);
        }

        return $res;
    }
private function convertTermsArray ( $ terms , Taxonomy $ taxonomy ) { $ res = array ( ) ; foreach ( $ terms as $ t ) { $ res [ ] = $ this -> termFactory -> create ( $ t , $ taxonomy ) ; } return $ res ; }
Convert an array of Wordpress term objects to array of Term objects.

@param  \stdClass[]                  $terms    Wordpress term objects
@param  \Tev\Taxonomy\Model\Taxonomy $taxonomy Parent taxonomy
@return \Tev\Term\Model\Term[]                 Term objects
Convert an array of Wordpress term objects to array of Term objects .