commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
SearchExactExpressionModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
26  protected $exact;
27 
28 
32  public function __construct(
33  ?SearchAnyValue $exact = null
34  ) {
35  $this->exact = $exact;
36  }
37 
42  public function getExact()
43  {
44  if (is_null($this->exact)) {
46  $data = $this->raw(self::FIELD_EXACT);
47  if (is_null($data)) {
48  return null;
49  }
50 
51  $this->exact = SearchAnyValueModel::of($data);
52  }
53 
54  return $this->exact;
55  }
56 
57 
61  public function setExact(?SearchAnyValue $exact): void
62  {
63  $this->exact = $exact;
64  }
65 }