commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
SearchQueryExpressionValueBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $field;
28 
33  private $boost;
34 
39  private $fieldType;
40 
45  public function getField()
46  {
47  return $this->field;
48  }
49 
54  public function getBoost()
55  {
56  return $this->boost;
57  }
58 
65  public function getFieldType()
66  {
67  return $this->fieldType;
68  }
69 
74  public function withField(?string $field)
75  {
76  $this->field = $field;
77 
78  return $this;
79  }
80 
85  public function withBoost(?float $boost)
86  {
87  $this->boost = $boost;
88 
89  return $this;
90  }
91 
96  public function withFieldType(?string $fieldType)
97  {
98  $this->fieldType = $fieldType;
99 
100  return $this;
101  }
102 
103 
105  {
107  $this->field,
108  $this->boost,
109  $this->fieldType
110  );
111  }
112 
113  public static function of(): SearchQueryExpressionValueBuilder
114  {
115  return new self();
116  }
117 }