for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* It's free open-source software released under the MIT License.
*
* @author Anatoly Nekhay <[email protected]>
* @copyright Copyright (c) 2021, Anatoly Nekhay
* @license https://github.com/sunrise-php/hydrator/blob/master/LICENSE
* @link https://github.com/sunrise-php/hydrator
*/
declare(strict_types=1);
namespace Sunrise\Hydrator\Annotation;
use Attribute;
* @Annotation
* @Target({"PROPERTY"})
* @NamedArgumentConstructor
* @Attributes({
* @Attribute("value", type="mixed", required=true),
* })
* @since 3.12.0
#[Attribute(Attribute::TARGET_PROPERTY)]
final class DefaultValue
{
* The attribute value
* @var mixed
* @readonly
public $value;
* Constructor of the class
* @param mixed $value
public function __construct($value)
$this->value = $value;
}