Flugg\Responder\Transformer::setRelations PHP Method

setRelations() public method

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