184 lines
3.5 KiB
PHP
184 lines
3.5 KiB
PHP
<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service\ManufacturerCenter;
|
|
|
|
class Product extends \Google\Collection
|
|
{
|
|
protected $collection_key = 'issues';
|
|
protected $attributesType = Attributes::class;
|
|
protected $attributesDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $contentLanguage;
|
|
protected $destinationStatusesType = DestinationStatus::class;
|
|
protected $destinationStatusesDataType = 'array';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $feedLabel;
|
|
protected $issuesType = Issue::class;
|
|
protected $issuesDataType = 'array';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $name;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $parent;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $productId;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $targetCountry;
|
|
|
|
/**
|
|
* @param Attributes
|
|
*/
|
|
public function setAttributes(Attributes $attributes)
|
|
{
|
|
$this->attributes = $attributes;
|
|
}
|
|
/**
|
|
* @return Attributes
|
|
*/
|
|
public function getAttributes()
|
|
{
|
|
return $this->attributes;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setContentLanguage($contentLanguage)
|
|
{
|
|
$this->contentLanguage = $contentLanguage;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getContentLanguage()
|
|
{
|
|
return $this->contentLanguage;
|
|
}
|
|
/**
|
|
* @param DestinationStatus[]
|
|
*/
|
|
public function setDestinationStatuses($destinationStatuses)
|
|
{
|
|
$this->destinationStatuses = $destinationStatuses;
|
|
}
|
|
/**
|
|
* @return DestinationStatus[]
|
|
*/
|
|
public function getDestinationStatuses()
|
|
{
|
|
return $this->destinationStatuses;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setFeedLabel($feedLabel)
|
|
{
|
|
$this->feedLabel = $feedLabel;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFeedLabel()
|
|
{
|
|
return $this->feedLabel;
|
|
}
|
|
/**
|
|
* @param Issue[]
|
|
*/
|
|
public function setIssues($issues)
|
|
{
|
|
$this->issues = $issues;
|
|
}
|
|
/**
|
|
* @return Issue[]
|
|
*/
|
|
public function getIssues()
|
|
{
|
|
return $this->issues;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setParent($parent)
|
|
{
|
|
$this->parent = $parent;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getParent()
|
|
{
|
|
return $this->parent;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setProductId($productId)
|
|
{
|
|
$this->productId = $productId;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getProductId()
|
|
{
|
|
return $this->productId;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setTargetCountry($targetCountry)
|
|
{
|
|
$this->targetCountry = $targetCountry;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTargetCountry()
|
|
{
|
|
return $this->targetCountry;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(Product::class, 'Google_Service_ManufacturerCenter_Product');
|