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="string", required=true),
* })
* @since 3.0.0
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)]
final class Format
{
* @var non-empty-string
non-empty-string
0
* @readonly
public string $value;
* @param non-empty-string $value
public function __construct(string $value)
$this->value = $value;
}