Source of file ArticlePictureParameter.php

Size: 2,497 Bytes - Last Modified: 2015-05-14T23:21:35+02:00

/www-data/git/ricardo/src/Diglin/Ricardo/Managers/Sell/Parameter/ArticlePictureParameter.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
<?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 ArticlePictureParameter
 * @package Diglin\Ricardo\Managers\Sell\Parameter
 */
class ArticlePictureParameter extends ParameterAbstract
{
    /**
     * @var array
     */
    protected $_pictureBytes; // required

    /**
     * Enum Diglin\Ricardo\Enums\PictureExtension
     *
     * @var int
     */
    protected $_pictureExtension; // required

    /**
     * @var int
     */
    protected $_pictureIndex; // required

    protected $_requiredProperties = array(
        'pictureBytes',
        'pictureExtension',
        'pictureIndex'
    );

    /**
     * @param mixed $pictureBytes
     * @return $this
     */
    public function setPictureBytes($pictureBytes)
    {
        $this->_pictureBytes = $pictureBytes;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getPictureBytes()
    {
        return $this->_pictureBytes;
    }

    /**
     * @param mixed $pictureExtension
     * @return $this
     */
    public function setPictureExtension($pictureExtension)
    {
        $this->_pictureExtension = $pictureExtension;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getPictureExtension()
    {
        return $this->_pictureExtension;
    }

    /**
     * @param mixed $pictureIndex
     * @return $this
     */
    public function setPictureIndex($pictureIndex)
    {
        $this->_pictureIndex = $pictureIndex;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getPictureIndex()
    {
        return $this->_pictureIndex;
    }
}