protected function createPost($topic, $body, $author) { $post = new Post(); $post->setTopic($topic); $post->setCreatedBy($author); $post->setCreatedDate(new \DateTime()); $post->setDeleted(false); $post->setBody($body); return $post; }
protected function createPost($topic, $body, $author) { $post = new Post(); $post->setTopic($topic); $post->setCreatedBy($author); $post->setCreatedDate(new \DateTime()); $post->setDeleted(false); $post->setBody($body); return $post; }