commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
DuplicateAttributeValuesErrorBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 use stdClass;
18 
23 {
28  private $message;
29 
34  private $attributes;
35 
40  public function getMessage()
41  {
42  return $this->message;
43  }
44 
49  public function getAttributes()
50  {
51  return $this->attributes;
52  }
53 
58  public function withMessage(?string $message)
59  {
60  $this->message = $message;
61 
62  return $this;
63  }
64 
69  public function withAttributes(?AttributeCollection $attributes)
70  {
71  $this->attributes = $attributes;
72 
73  return $this;
74  }
75 
76 
78  {
80  $this->message,
81  $this->attributes
82  );
83  }
84 
85  public static function of(): DuplicateAttributeValuesErrorBuilder
86  {
87  return new self();
88  }
89 }