src/Transformer.php
public function setRelations($relations)
    {
        $this->setAvailableIncludes(array_unique(array_merge($this->availableIncludes, (array) $relations)));

        return $this;
    }
public function setRelations($relations)
    {
        $this->setAvailableIncludes(array_unique(array_merge($this->availableIncludes, (array) $relations)));

        return $this;
    }
public function setRelations ( $ relations ) { $ this -> setAvailableIncludes ( array_unique ( array_merge ( $ this -> availableIncludes , ( array ) $ relations ) ) ) ; return $ this ; }
Set relations on the transformer.

@param  array|string $relations
@return self
Set relations on the transformer .