public function setList(array $list)
    {
        foreach ($list as $item) {
            $this->checkType(TypeDefinitionInterface::class, $item);
        }
        $this->list = $list;
    }
public function setList(array $list)
    {
        foreach ($list as $item) {
            $this->checkType(TypeDefinitionInterface::class, $item);
        }
        $this->list = $list;
    }
public function setList ( array $ list ) { foreach ( $ list as $ item ) { $ this -> checkType ( TypeDefinitionInterface :: class , $ item ) ; } $ this -> list = $ list ; }
Set a list of type definitions

@param TypeDefinitionInterface[] $list
Set a list of type definitions