Source of file DeletePlannedArticlesParameter.php
Size: 2,314 Bytes - Last Modified: 2015-04-17T00:11:29+02:00
/www-data/git/ricardo/src/Diglin/Ricardo/Managers/Sell/Parameter/DeletePlannedArticlesParameter.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 | <?php /** * Diglin GmbH - Switzerland * * This file is part of a Diglin GmbH module. * * This Diglin GmbH module is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This script is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * @author Sylvain Rayé <support at diglin.com> * @category Diglin * @package Diglin_Ricardo * @copyright Copyright (c) 2011-2015 Diglin (http://www.diglin.com) * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) */ namespace Diglin\Ricardo\Managers\Sell\Parameter; use Diglin\Ricardo\Managers\ParameterAbstract; /** * Class DeletePlannedArticlesParameter * @package Diglin\Ricardo\Managers\Sell\Parameter */ class DeletePlannedArticlesParameter extends ParameterAbstract { /** * @var string */ protected $_antiforgeryToken; // required /** * @var array */ protected $_articles = array(); // required /** * @var array */ protected $_requiredProperties = array( 'antiforgeryToken', 'articleIds', ); /** * @param string $antiforgeryToken * @return $this */ public function setAntiforgeryToken($antiforgeryToken) { $this->_antiforgeryToken = $antiforgeryToken; return $this; } /** * @return string */ public function getAntiforgeryToken() { return $this->_antiforgeryToken; } /** * @param ClosePlannedArticleParameter $plannedArticle * @param bool $clear * @return $this */ public function setArticles(ClosePlannedArticleParameter $plannedArticle = null, $clear = false) { if ($clear) { $this->_articles = array(); } if (is_null($plannedArticle)) { return $this; } $this->_articles[] = $plannedArticle; return $this; } /** * @return array */ public function getArticles() { return $this->_articles; } } |