public function withAttributes(Attributes $attribs): self
    {
        $obj = clone $this;
        $obj->_attributes = $attribs;
        return $obj;
    }
public function withAttributes(Attributes $attribs): self
    {
        $obj = clone $this;
        $obj->_attributes = $attribs;
        return $obj;
    }
public function withAttributes ( Attributes $ attribs ) : self { $ obj = clone $ this ; $ obj -> _attributes = $ attribs ; return $ obj ; }
Get self with attributes.

@param Attributes $attribs
@return self
Get self with attributes .