Model/DeploymentSite.php
public function addCategoryResponse($item)
    {
        if (!($item instanceof CategoryResponse)) {
            if (is_array($item)) {
                try {
                    $item = new CategoryResponse($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate CategoryResponse. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "CategoryResponse"!', E_USER_WARNING);
            }
        }
        $this->categories[] = $item;

        return $this;
    }
public function addCategoryResponse($item)
    {
        if (!($item instanceof CategoryResponse)) {
            if (is_array($item)) {
                try {
                    $item = new CategoryResponse($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate CategoryResponse. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "CategoryResponse"!', E_USER_WARNING);
            }
        }
        $this->categories[] = $item;

        return $this;
    }
public function addCategoryResponse ( $ item ) { if ( ! ( $ item instanceof CategoryResponse ) ) { if ( is_array ( $ item ) ) { try { $ item = new CategoryResponse ( $ item ) ; } catch ( \ Exception $ e ) { trigger_error ( 'Could not auto-instantiate CategoryResponse. ' . $ e -> getMessage ( ) , E_USER_WARNING ) ; } } else { trigger_error ( 'Array parameter item is not of expected type "CategoryResponse"!' , E_USER_WARNING ) ; } } $ this -> categories [ ] = $ item ; return $ this ; }
Adds an object of "Categories" of the DeploymentSite.

@param CategoryResponse|array $item

@return DeploymentSite
Adds an object of Categories of the DeploymentSite .