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