Model/DeploymentSite.php
public function setCategories(array $categories)
    {
        $this->categories = [];

        foreach ($categories as $item) {
            $this->addCategoryResponse($item);
        }

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

        foreach ($categories as $item) {
            $this->addCategoryResponse($item);
        }

        return $this;
    }
Sets the "categories" of the DeploymentSite.

@param CategoryResponse[] $categories

@return DeploymentSite