partkeepr

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

FootprintAttachment.php (1046B)


      1 <?php
      2 
      3 namespace PartKeepr\FootprintBundle\Entity;
      4 
      5 use Doctrine\ORM\Mapping as ORM;
      6 use PartKeepr\UploadedFileBundle\Entity\UploadedFile;
      7 
      8 /**
      9  * Holds a footprint attachment.
     10  *
     11  * @ORM\Entity
     12  **/
     13 class FootprintAttachment extends UploadedFile
     14 {
     15     /**
     16      * Creates a new footprint attachment.
     17      */
     18     public function __construct()
     19     {
     20         parent::__construct();
     21         $this->setType('FootprintAttachment');
     22     }
     23 
     24     /**
     25      * The footprint object.
     26      *
     27      * @ORM\ManyToOne(targetEntity="PartKeepr\FootprintBundle\Entity\Footprint",inversedBy="attachments")
     28      *
     29      * @var Footprint
     30      */
     31     private $footprint = null;
     32 
     33     /**
     34      * Sets the footprint.
     35      *
     36      * @param Footprint $footprint The footprint to set
     37      */
     38     public function setFootprint(Footprint $footprint = null)
     39     {
     40         $this->footprint = $footprint;
     41     }
     42 
     43     /**
     44      * Returns the footprint.
     45      *
     46      * @return Footprint the footprint
     47      */
     48     public function getFootprint()
     49     {
     50         return $this->footprint;
     51     }
     52 }