public function setPublishedTo( $date, $format = null )
    {
        $this->publishedTo = empty( $date ) ? null : $this->inputDate( $date, $format );
        return $this;
    }
public function setPublishedTo( $date, $format = null )
    {
        $this->publishedTo = empty( $date ) ? null : $this->inputDate( $date, $format );
        return $this;
    }
public function setPublishedTo ( $ date , $ format = null ) { $ this -> publishedTo = empty ( $ date ) ? null : $ this -> inputDate ( $ date , $ format ) ; return $ this ; }
Set published-to date

@param \DateTime|string $date
@param string|null $format
@return \Grid\Paragraph\Model\Paragraph\Structure\Content
Set published - to date