<?php
namespace Medienreaktor\Products\Domain\Model;

use TYPO3\CMS\Extbase\Utility\DebuggerUtility;

/***
 *
 * This file is part of the "Products" Extension for TYPO3 CMS.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 *  (c) 2017 Daniel Kestler &lt;daniel.kestler@medienreaktor&gt;, medienreaktor GmbH
 *
 ***/

/**
 * Property
 */
class Property extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
    /**
     * name
     *
     * @var string
     */
    protected $name = '';

    /**
     * type
     *
     * @var string
     */
    protected $type = '';

    /**
     * unit_prefix
     *
     * @var string
     */
    protected $unitPrefix = '';

    /**
     * unit_suffix
     *
     * @var string
     */
    protected $unitSuffix = '';

    /**
     * propertygroup
     *
     * @var \Medienreaktor\Products\Domain\Model\PropertyGroup
     */
    protected $propertygroup = NULL;

    /**
     * Returns the name
     *
     * @return string $name
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Sets the name
     *
     * @param string $name
     * @return void
     */
    public function setName($name): void
    {
        $this->name = $name;
    }

    /**
     * Returns the propertygroup
     *
     * @return \Medienreaktor\Products\Domain\Model\PropertyGroup $propertygroup
     */
    public function getPropertyGroup()
    {
        return $this->propertygroup;
    }

    /**
     * Returns the type
     *
     * @return string $type
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Sets the type
     *
     * @param string $type
     * @return void
     */
    public function setType($type): void
    {
        $this->type = $type;
    }

    /**
     * Returns the unit prefix
     *
     * @return string $type
     */
    public function getUnitPrefix()
    {
        return $this->unitPrefix;
    }

    /**
     * Sets the unit prefix
     *
     * @param string $unitPrefix
     * @return void
     */
    public function setUnitPrefix($unitPrefix): void
    {
        $this->unitPrefix = $unitPrefix;
    }

    /**
     * Returns the unit suffix
     *
     * @return string $type
     */
    public function getUnitSuffix()
    {
        return $this->unitSuffix;
    }

    /**
     * Sets the unit suffix
     *
     * @param string $unitSuffix
     * @return void
     */
    public function setUnitSuffix($unitSuffix): void
    {
        $this->unitPrefix = $unitSuffix;
    }
}
