partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

Distributor.php (5621B)


      1 <?php
      2 
      3 namespace PartKeepr\DistributorBundle\Entity;
      4 
      5 use Doctrine\ORM\Mapping as ORM;
      6 use PartKeepr\CoreBundle\Entity\BaseEntity;
      7 use PartKeepr\DoctrineReflectionBundle\Annotation\TargetService;
      8 use Symfony\Component\Serializer\Annotation\Groups;
      9 
     10 /**
     11  * Represents a distributor.
     12  *
     13  * @ORM\Entity
     14  * @TargetService(uri="/api/distributors")
     15  **/
     16 class Distributor extends BaseEntity
     17 {
     18     /**
     19      * Holds the name of the distributor.
     20      *
     21      * @ORM\Column(type="string",unique=true)
     22      * @Groups({"default"})
     23      *
     24      * @var string
     25      */
     26     private $name;
     27 
     28     /**
     29      * Holds the address of the distributor.
     30      *
     31      * @ORM\Column(type="text",nullable=true)
     32      * @Groups({"default"})
     33      *
     34      * @var string
     35      */
     36     private $address;
     37 
     38     /**
     39      * Holds the URL of the distributor.
     40      *
     41      * @ORM\Column(type="string",nullable=true)
     42      * @Groups({"default"})
     43      *
     44      * @var string
     45      */
     46     private $url;
     47 
     48     /**
     49      * Holds the phone number of the distributor.
     50      *
     51      * @ORM\Column(type="string",nullable=true)
     52      * @Groups({"default"})
     53      *
     54      * @var string
     55      */
     56     private $phone;
     57 
     58     /**
     59      * Holds the fax number of the distributor.
     60      *
     61      * @ORM\Column(type="string",nullable=true)
     62      * @Groups({"default"})
     63      *
     64      * @var string
     65      */
     66     private $fax;
     67 
     68     /**
     69      * Holds the email of the distributor.
     70      *
     71      * @ORM\Column(type="string",nullable=true)
     72      * @Groups({"default"})
     73      *
     74      * @var string
     75      */
     76     private $email;
     77 
     78     /**
     79      * Holds a comment for the distributor.
     80      *
     81      * @ORM\Column(type="text",nullable=true)
     82      * @Groups({"default"})
     83      *
     84      * @var string
     85      */
     86     private $comment;
     87 
     88     /**
     89      * Holds the SKU lookup URL of the distributor.
     90      *
     91      * @ORM\Column(type="string",nullable=true)
     92      * @Groups({"default"})
     93      *
     94      * @var string
     95      */
     96     private $skuurl;
     97 
     98     /**
     99      * Defines if the distributor is used for pricing calculations.
    100      *
    101      * @ORM\Column(type="boolean",options={ "default":false})
    102      * @Groups({"default"})
    103      *
    104      * @var bool
    105      */
    106     private $enabledForReports = true;
    107 
    108     /**
    109      * @return bool
    110      */
    111     public function isEnabledForReports()
    112     {
    113         return $this->enabledForReports;
    114     }
    115 
    116     /**
    117      * @param bool $enabledForReports
    118      */
    119     public function setEnabledForReports($enabledForReports)
    120     {
    121         $this->enabledForReports = $enabledForReports;
    122     }
    123 
    124     /**
    125      * Returns the name of the distributor.
    126      *
    127      * @return string The distributor's name
    128      */
    129     public function getName()
    130     {
    131         return $this->name;
    132     }
    133 
    134     /**
    135      * Sets the name for the distributor.
    136      *
    137      * @param string $name The distributor's name
    138      */
    139     public function setName($name)
    140     {
    141         $this->name = $name;
    142     }
    143 
    144     /**
    145      * Returns the address of this distributor.
    146      *
    147      * @return string The address of this distributor
    148      */
    149     public function getAddress()
    150     {
    151         return $this->address;
    152     }
    153 
    154     /**
    155      * Sets the address of this distributor.
    156      *
    157      * @param string $address The address of the distributor
    158      */
    159     public function setAddress($address)
    160     {
    161         $this->address = $address;
    162     }
    163 
    164     /**
    165      * Returns the phone number of this distributor.
    166      *
    167      * @return string The phone number
    168      */
    169     public function getPhone()
    170     {
    171         return $this->phone;
    172     }
    173 
    174     /**
    175      * Sets the phone number for this distributor.
    176      *
    177      * @param string $phone The phone number of this distributor
    178      */
    179     public function setPhone($phone)
    180     {
    181         $this->phone = $phone;
    182     }
    183 
    184     /**
    185      * Returns the fax number for this distributor.
    186      *
    187      * @return string $fax The fax number
    188      */
    189     public function getFax()
    190     {
    191         return $this->fax;
    192     }
    193 
    194     /**
    195      * Sets the fax number for this distributor.
    196      *
    197      * @param string $fax The fax number
    198      */
    199     public function setFax($fax)
    200     {
    201         $this->fax = $fax;
    202     }
    203 
    204     /**
    205      * Returns the comment for this distributor.
    206      *
    207      * @return string The comment
    208      */
    209     public function getComment()
    210     {
    211         return $this->comment;
    212     }
    213 
    214     /**
    215      * Sets the comment for this distributor.
    216      *
    217      * @param string $comment The comment for this distributor
    218      */
    219     public function setComment($comment)
    220     {
    221         $this->comment = $comment;
    222     }
    223 
    224     /**
    225      * Returns the email for this distributor.
    226      *
    227      * @return string The email
    228      */
    229     public function getEmail()
    230     {
    231         return $this->email;
    232     }
    233 
    234     /**
    235      * Sets the email for this distributor.
    236      *
    237      * @param string $email The email for this distributor
    238      */
    239     public function setEmail($email)
    240     {
    241         $this->email = $email;
    242     }
    243 
    244     /**
    245      * Returns the URL for this distributor.
    246      *
    247      * @return string The URL
    248      */
    249     public function getUrl()
    250     {
    251         return $this->url;
    252     }
    253 
    254     /**
    255      * Sets the URL for this distributor.
    256      *
    257      * @param string $url The URL for this distributor
    258      */
    259     public function setUrl($url)
    260     {
    261         $this->url = $url;
    262     }
    263 
    264     /**
    265      * Returns the SKU lookup URL for this distributor.
    266      *
    267      * @return string The SKU lookup URL
    268      */
    269     public function getSkuurl()
    270     {
    271         return $this->skuurl;
    272     }
    273 
    274     /**
    275      * Sets the SKU lookup URL for this distributor.
    276      *
    277      * @param string $skuurl The SKU lookup URL for this distributor
    278      */
    279     public function setSkuurl($skuurl)
    280     {
    281         $this->skuurl = $skuurl;
    282     }
    283 }