code: public function setCommands(array $commands)
      {
          $this->commands = [];
  
          foreach ($commands as $item) {
              $this->addCommand($item);
          }
  
          return $this;
      }
docs: Sets the "commands" of the ImageTemplate.
  
  @param Command[] $commands
  
  @return ImageTemplate