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;
    }
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;
    }
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 ; }
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
Add a list