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