src/Crossjoin/Css/Format/Rule/TraitDeclarations.php
public function setDeclarations($declarations)
    {
        $this->declarations = [];
        if (!is_array($declarations)) {
            $declarations = [$declarations];
        }
        foreach ($declarations as $declaration) {
            $this->addDeclaration($declaration);
        }

        return $this;
    }
public function setDeclarations($declarations)
    {
        $this->declarations = [];
        if (!is_array($declarations)) {
            $declarations = [$declarations];
        }
        foreach ($declarations as $declaration) {
            $this->addDeclaration($declaration);
        }

        return $this;
    }
public function setDeclarations ( $ declarations ) { $ this -> declarations = [ ] ; if ( ! is_array ( $ declarations ) ) { $ declarations = [ $ declarations ] ; } foreach ( $ declarations as $ declaration ) { $ this -> addDeclaration ( $ declaration ) ; } return $ this ; }
Sets the declarations.

@param DeclarationAbstract[]|DeclarationAbstract $declarations
@return $this
Sets the declarations .