activity/object/object.php
public function setPublished($date)
    {
        if (!is_null($date) && !$date instanceof KDate) {
            throw new InvalidArgumentException('Invalid date type.');
        }

        $this->published = $date;
        return $this;
    }
public function setPublished($date)
    {
        if (!is_null($date) && !$date instanceof KDate) {
            throw new InvalidArgumentException('Invalid date type.');
        }

        $this->published = $date;
        return $this;
    }
public function setPublished ( $ date ) { if ( ! is_null ( $ date ) && ! $ date instanceof KDate ) { throw new InvalidArgumentException ( 'Invalid date type.' ) ; } $ this -> published = $ date ; return $ this ; }
Set the published date.

@link http://activitystrea.ms/specs/json/1.0/#object See published property.

@param KDate $date The published date.
@return ComActivitiesActivityObject
Set the published date .