original_string: public function getMood($createIfEmpty = true)
      {
          if (!$this->mood && $createIfEmpty) {
              $this->createMood();
          }
          return $this->mood;
      }
code: public function getMood($createIfEmpty = true)
      {
          if (!$this->mood && $createIfEmpty) {
              $this->createMood();
          }
          return $this->mood;
      }
code_tokens: public function getMood ( $ createIfEmpty = true ) { if ( ! $ this -> mood && $ createIfEmpty ) { $ this -> createMood ( ) ; } return $ this -> mood ; }
docstring: Get the Mood
  
  @api
  @param bool $createIfEmpty (optional) If the Mood should be created if it doesn't exist yet
  @return Mood
docstring_tokens: Get the Mood