Model/ImageTemplate.php
public function setCommands(array $commands)
    {
        $this->commands = [];

        foreach ($commands as $item) {
            $this->addCommand($item);
        }

        return $this;
    }
public function setCommands(array $commands)
    {
        $this->commands = [];

        foreach ($commands as $item) {
            $this->addCommand($item);
        }

        return $this;
    }
Sets the "commands" of the ImageTemplate.

@param Command[] $commands

@return ImageTemplate