public function forType(string $type): HandlerInterface
    {
        $class = $type !== 'object' ? $type : null;

        if ($class === $this->class) {
            return $this;
        }

        $handler = clone $this;
        $handler->class = $class;

        return $handler;
    }
public function forType(string $type): HandlerInterface
    {
        $class = $type !== 'object' ? $type : null;

        if ($class === $this->class) {
            return $this;
        }

        $handler = clone $this;
        $handler->class = $class;

        return $handler;
    }
public function forType ( string $ type ) : HandlerInterface { $ class = $ type !== 'object' ? $ type : null ; if ( $ class === $ this -> class ) { return $ this ; } $ handler = clone $ this ; $ handler -> class = $ class ; return $ handler ; }
Set the class name

@param string $type
@return static
Set the class name