for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the tmilos/scim-schema package.
*
* (c) Milos Tomic <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Tmilos\ScimSchema\Model\SPC;
use Tmilos\ScimSchema\Model\SerializableInterface;
abstract class AbstractSPCItem implements SerializableInterface
{
/** @var bool */
protected $supported;
/**
* @param array $data
* @return static|AbstractSPCItem
public static function deserializeObject(array $data)
return new static($data['supported']);
}
* @param bool $supported
public function __construct($supported)
$this->supported = $supported;
* @return bool
public function isSupported()
return $this->supported;
* @return array
public function serializeObject()
return [
'supported' => $this->supported,
];