for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file has been created by developers from BitBag.
* Feel free to contact us once you face any issues or want to start
* You can find more information about us on https://bitbag.io and write us
* an email on [email protected].
*/
declare(strict_types=1);
namespace BitBag\SyliusMolliePlugin\DTO;
use Mollie\Api\Resources\MethodCollection;
final class ApiKeyTest
{
/** @var string */
private $type;
/** @var bool */
private $key;
/** @var MethodCollection|null */
private $methods;
private $status;
private $message;
public function __construct(
string $type,
bool $key = false,
$methods = null,
string $status = 'OK',
string $message = ''
) {
$this->type = $type;
$this->key = $key;
$this->methods = $methods;
$this->status = $status;
$this->message = $message;
}
public function getType(): string
return $this->type;
public function getKey(): bool
return $this->key;
public function getMethods(): ?MethodCollection
return $this->methods;
public function setType(string $type): void
public function setKey(bool $key): void
public function setMethods(?MethodCollection $methods): void
public function getStatus(): string
return $this->status;
public function setStatus(string $status): void
public function getMessage(): string
return $this->message;
public function setMessage(string $message): void