original_string: public function addList(array $list, $listName, $state)
      {
          if (!is_bool($state)) {
              throw new \InvalidArgumentException("Wrong parameter 'state' is not boolean");
          }
  
          $entryList = $this->entryFactory->getEntryList($list, $state);
          $this->listMerger->addList($entryList, $listName);
  
          return $this;
      }
code: public function addList(array $list, $listName, $state)
      {
          if (!is_bool($state)) {
              throw new \InvalidArgumentException("Wrong parameter 'state' is not boolean");
          }
  
          $entryList = $this->entryFactory->getEntryList($list, $state);
          $this->listMerger->addList($entryList, $listName);
  
          return $this;
      }
code_tokens: public function addList ( array $ list , $ listName , $ state ) { if ( ! is_bool ( $ state ) ) { throw new \ InvalidArgumentException ( "Wrong parameter 'state' is not boolean" ) ; } $ entryList = $ this -> entryFactory -> getEntryList ( $ list , $ state ) ; $ this -> listMerger -> addList ( $ entryList , $ listName ) ; return $ this ; }
docstring: Add a list
  
  @param array        $list     List
  @param string       $listName Identifier for the list
  @param boolean|null $state    Whether the list is trusted or not
  
  @return $this
docstring_tokens: Add a list