public function withSelector($selector) { Type::enforce($selector, Type::STRING); $this->selector = $selector; return $this; }