public function addPublished(\DateTimeInterface $time)
    {
        /** @var Published $element */
        $element = $this->addChild('atom:published', 'published');
        $element->setDate($time);

        return $element;
    }
public function addPublished(\DateTimeInterface $time)
    {
        /** @var Published $element */
        $element = $this->addChild('atom:published', 'published');
        $element->setDate($time);

        return $element;
    }
public function addPublished ( \ DateTimeInterface $ time ) { /** @var Published $element */ $ element = $ this -> addChild ( 'atom:published' , 'published' ) ; $ element -> setDate ( $ time ) ; return $ element ; }
Add date published.

@param \DateTimeInterface $time

@return Published

@since 1.0
Add date published .