public function __construct(Variant $variant, array $errors) { $this->variant = $variant; $this->errors = $errors; }