public function setGrammar(Swift_Mime_Grammar $grammar) { $this->_grammar = $grammar; $this->setCachedValue(null); }