src/Traits/WithEnclosuresTrait.php
public function removeEnclosure(EnclosureInterface $enclosure)
    {
        foreach ($this->enclosures as $i => $itemEnclosure) {
            if ($itemEnclosure == $enclosure) {
                unset($this->enclosures[$i]);
            }
        }
        $this->enclosures = array_values($this->enclosures);
        return $this;
    }
public function removeEnclosure(EnclosureInterface $enclosure)
    {
        foreach ($this->enclosures as $i => $itemEnclosure) {
            if ($itemEnclosure == $enclosure) {
                unset($this->enclosures[$i]);
            }
        }
        $this->enclosures = array_values($this->enclosures);
        return $this;
    }
public function removeEnclosure ( EnclosureInterface $ enclosure ) { foreach ( $ this -> enclosures as $ i => $ itemEnclosure ) { if ( $ itemEnclosure == $ enclosure ) { unset ( $ this -> enclosures [ $ i ] ) ; } } $ this -> enclosures = array_values ( $ this -> enclosures ) ; return $ this ; }
Remove an enclosure from the feed.
@param EnclosureInterface $enclosure
@return $this
Remove an enclosure from the feed .