for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SWP\Component\Plan\Model;
use SWP\Component\Common\Model\EnableableTrait;
use SWP\Component\Common\Model\SoftDeletableTrait;
use SWP\Component\Common\Model\TimestampableTrait;
class Plan implements PlanInterface
{
use EnableableTrait, TimestampableTrait, SoftDeletableTrait;
/**
* @var mixed|null
*/
protected $id;
* @var string|null
protected $code;
protected $name;
* @var int
protected $amount = 0;
* @var string
protected $interval = PlanInterface::INTERVAL_MONTH;
protected $intervalCount = 1;
protected $currency;
* Plan constructor.
public function __construct()
$this->createdAt = new \DateTime();
}
* {@inheritdoc}
public function getId()
return $this->id;
public function getCode(): ?string
return $this->code;
public function setCode(?string $code): void
$this->code = $code;
public function getName(): ?string
return $this->name;
public function setName(?string $name): void
$this->name = $name;
public function getAmount(): int
return $this->amount;
public function setAmount(int $amount): void
$this->amount = $amount;
public function getInterval(): string
return $this->interval;
public function setInterval(string $interval): void
$this->interval = $interval;
public function getIntervalCount(): int
return $this->intervalCount;
public function setIntervalCount(int $intervalCount): void
$this->intervalCount = $intervalCount;
public function getCurrency(): ?string
return $this->currency;
public function setCurrency(?string $currency): void
$this->currency = $currency;