PartKeepr\FootprintBundle\Entity\FootprintAttachment::setFootprint PHP Method

setFootprint() public method

Sets the footprint.
public setFootprint ( Footprint $footprint = null )
$footprint Footprint The footprint to set
    public function setFootprint(Footprint $footprint = null)
    {
        $this->footprint = $footprint;
    }

Usage Example

Beispiel #1
0
 /**
  * Removes an IC Logo.
  *
  * @param FootprintAttachment $attachment
  *
  * @return void
  */
 public function removeAttachment(FootprintAttachment $attachment)
 {
     $attachment->setFootprint(null);
     $this->attachments->removeElement($attachment);
 }