public function set(CheckerInterface $checker): self
    {
        $this->checkers[$checker->getId()] = $checker;

        return $this;
    }
public function set(CheckerInterface $checker): self
    {
        $this->checkers[$checker->getId()] = $checker;

        return $this;
    }
public function set ( CheckerInterface $ checker ) : self { $ this -> checkers [ $ checker -> getId ( ) ] = $ checker ; return $ this ; }
Add or replace a checker instance to the collection at given id.

@param CheckerInterface $checker The checker instance.

@return CheckerCollection
Add or replace a checker instance to the collection at given id .