for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Shapin\Stripe\Model\Customer;
use Shapin\Stripe\Exception\LogicException;
use Shapin\Stripe\Model\ContainsMetadata;
use Shapin\Stripe\Model\CreatableFromArray;
use Shapin\Stripe\Model\LivemodeTrait;
use Shapin\Stripe\Model\MetadataTrait;
use Shapin\Stripe\Model\MetadataCollection;
use Shapin\Stripe\Model\Source\Source;
use Shapin\Stripe\Model\Source\SourceCollection;
use Shapin\Stripe\Model\Subscription\Subscription;
use Shapin\Stripe\Model\Subscription\SubscriptionCollection;
use Money\Currency;
final class CustomerDeleted implements CreatableFromArray
{
/**
* @var string
private $id;
* @var bool
private $deleted;
private function __construct()
}
public static function createFromArray(array $data): self
$model = new self();
$model->id = $data['id'];
$model->deleted = (bool) $data['deleted'];
return $model;
public function getId(): string
return $this->id;
public function isDeleted(): bool
return $this->deleted;