for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PhpMob package.
*
* (c) Ishmael Doss <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace PhpMob\Settings\Schema;
/**
* @author Ishmael Doss <[email protected]>
class Blueprint implements \JsonSerializable
{
* @var array
private $data = [];
public function __construct(array $schema)
foreach ($schema as $key => $value) {
$this->data[$key] = $value;
}
* @return string
public function getType(): string
return $this->data['type'];
* @return array
public function getOptions(): array
return $this->data['options'];
public function getConstraints(): array
return $this->data['constraints'];
* {@inheritdoc}
public function jsonSerialize(): array
return $this->data;