public function createMood()
    {
        if ($this->mood) {
            return $this->mood;
        }
        $mood = new Mood();
        $this->setMood($mood);
        return $this->mood;
    }
public function createMood()
    {
        if ($this->mood) {
            return $this->mood;
        }
        $mood = new Mood();
        $this->setMood($mood);
        return $this->mood;
    }
public function createMood ( ) { if ( $ this -> mood ) { return $ this -> mood ; } $ mood = new Mood ( ) ; $ this -> setMood ( $ mood ) ; return $ this -> mood ; }
Create a new Mood if necessary

@api
@return Mood
Create a new Mood if necessary