src/Discussion/Discussion.php
public function setLastPost(Post $post)
    {
        $this->last_posted_at = $post->created_at;
        $this->last_posted_user_id = $post->user_id;
        $this->last_post_id = $post->id;
        $this->last_post_number = $post->number;

        return $this;
    }
public function setLastPost(Post $post)
    {
        $this->last_posted_at = $post->created_at;
        $this->last_posted_user_id = $post->user_id;
        $this->last_post_id = $post->id;
        $this->last_post_number = $post->number;

        return $this;
    }
public function setLastPost ( Post $ post ) { $ this -> last_posted_at = $ post -> created_at ; $ this -> last_posted_user_id = $ post -> user_id ; $ this -> last_post_id = $ post -> id ; $ this -> last_post_number = $ post -> number ; return $ this ; }
Set the discussion's last post details.

@param Post $post
@return $this
Set the discussion s last post details .