src/Taxonomy/Taxonomy.php
public function setObjects($objects): TaxonomyInterface
    {
        $this->objects = array_unique(array_merge($this->objects, (array) $objects));

        // Check if object have custom post status.
        // If so, change its default update count callback function.
        $this->parseObjectsForCustomStatus($this->objects);

        return $this;
    }
public function setObjects($objects): TaxonomyInterface
    {
        $this->objects = array_unique(array_merge($this->objects, (array) $objects));

        // Check if object have custom post status.
        // If so, change its default update count callback function.
        $this->parseObjectsForCustomStatus($this->objects);

        return $this;
    }
public function setObjects ( $ objects ) : TaxonomyInterface { $ this -> objects = array_unique ( array_merge ( $ this -> objects , ( array ) $ objects ) ) ; // Check if object have custom post status. // If so, change its default update count callback function. $ this -> parseObjectsForCustomStatus ( $ this -> objects ) ; return $ this ; }
Set taxonomy objects.

@param array|string $objects

@return TaxonomyInterface
Set taxonomy objects .