private function createAndPersistMessagePerson(MessageInterface $message, PersonInterface $person, $setRead)
    {
        $messagePerson = $this->driver->createMessagePersonModel($message, $person);

        if ($setRead) {
            $messagePerson->setRead();
        }

        $this->driver->persistMessagePerson($messagePerson);

        return $messagePerson;
    }
private function createAndPersistMessagePerson(MessageInterface $message, PersonInterface $person, $setRead)
    {
        $messagePerson = $this->driver->createMessagePersonModel($message, $person);

        if ($setRead) {
            $messagePerson->setRead();
        }

        $this->driver->persistMessagePerson($messagePerson);

        return $messagePerson;
    }
private function createAndPersistMessagePerson ( MessageInterface $ message , PersonInterface $ person , $ setRead ) { $ messagePerson = $ this -> driver -> createMessagePersonModel ( $ message , $ person ) ; if ( $ setRead ) { $ messagePerson -> setRead ( ) ; } $ this -> driver -> persistMessagePerson ( $ messagePerson ) ; return $ messagePerson ; }
Create and persist a message person object.

@param MessageInterface $message
@param PersonInterface  $person
@param bool             $setRead

@return ConversationPersonInterface
Create and persist a message person object .