commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
All Classes Namespaces Functions Variables Pages
RangeFacetResultBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class RangeFacetResultBuilder implements Builder
22{
27 private $ranges;
28
35 public function getRanges()
36 {
37 return $this->ranges;
38 }
39
44 public function withRanges(?FacetRangeCollection $ranges)
45 {
46 $this->ranges = $ranges;
47
48 return $this;
49 }
50
51
52 public function build(): RangeFacetResult
53 {
54 return new RangeFacetResultModel(
55 $this->ranges
56 );
57 }
58
59 public static function of(): RangeFacetResultBuilder
60 {
61 return new self();
62 }
63}