partkeepr

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

ImportPreset.php (1771B)


      1 <?php
      2 
      3 namespace PartKeepr\ImportBundle\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  * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="name_entity_unique", columns={"baseEntity", "name"})})
     12  * @ORM\Entity()
     13  * @TargetService(uri="/api/import_presets")
     14  */
     15 class ImportPreset extends BaseEntity
     16 {
     17     /**
     18      * Holds the base entity.
     19      *
     20      * @ORM\Column(length=255)
     21      * @Groups({"default"})
     22      *
     23      * @var string
     24      */
     25     private $baseEntity;
     26 
     27     /**
     28      * Holds the import preset name.
     29      *
     30      * @ORM\Column(length=255)
     31      * @Groups({"default"})
     32      *
     33      * @var string
     34      */
     35     private $name;
     36 
     37     /**
     38      * Defines the preset configuration.
     39      *
     40      * @ORM\Column(type="text")
     41      * @Groups({"default"})
     42      *
     43      * @var string
     44      */
     45     private $configuration;
     46 
     47     /**
     48      * @return string
     49      */
     50     public function getBaseEntity()
     51     {
     52         return $this->baseEntity;
     53     }
     54 
     55     /**
     56      * @param string $baseEntity
     57      */
     58     public function setBaseEntity($baseEntity)
     59     {
     60         $this->baseEntity = $baseEntity;
     61     }
     62 
     63     /**
     64      * @return string
     65      */
     66     public function getName()
     67     {
     68         return $this->name;
     69     }
     70 
     71     /**
     72      * @param string $name
     73      */
     74     public function setName($name)
     75     {
     76         $this->name = $name;
     77     }
     78 
     79     /**
     80      * @return string
     81      */
     82     public function getConfiguration()
     83     {
     84         return $this->configuration;
     85     }
     86 
     87     /**
     88      * @param string $configuration
     89      */
     90     public function setConfiguration($configuration)
     91     {
     92         $this->configuration = $configuration;
     93     }
     94 }