original_string: public function closeSubject(Subject $subject)
      {
          $this->om->startFlushSuite();
          $subject->setIsClosed(true);
          $this->om->persist($subject);
          $this->dispatch(new CloseSubjectEvent($subject));
          $this->om->endFlushSuite();
      }
code: public function closeSubject(Subject $subject)
      {
          $this->om->startFlushSuite();
          $subject->setIsClosed(true);
          $this->om->persist($subject);
          $this->dispatch(new CloseSubjectEvent($subject));
          $this->om->endFlushSuite();
      }
code_tokens: public function closeSubject ( Subject $ subject ) { $ this -> om -> startFlushSuite ( ) ; $ subject -> setIsClosed ( true ) ; $ this -> om -> persist ( $ subject ) ; $ this -> dispatch ( new CloseSubjectEvent ( $ subject ) ) ; $ this -> om -> endFlushSuite ( ) ; }
docstring: Close a subject and no one can write in it.
  
  @param \Claroline\ForumBundle\Entity\Subject $subject
docstring_tokens: Close a subject and no one can write in it .