static function createComment(User $recipient, User $poster, $content) { $shout = new Shout(); $shout->setUserRelatedByPosterId($poster); $shout->setUserRelatedByRecipientId($recipient); $time = strtotime(date('Y-m-d H:i:s')) + 3120; $newTime = date('Y-m-d H:i:s', $time); $shout->setCreatedAt($newTime); $shout->setContent($content); $shout->save(); }