for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (c) Nate Brunette.
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
namespace Tebru\Gson\Annotation;
use Tebru\AnnotationReader\AbstractAnnotation;
/**
* Class Until
*
* Used to exclude classes or properties that should not be serialized if the version number
* is greater than or equal to the @Until value. Will not be used if version number is not
* defined on the builder.
* @author Nate Brunette <[email protected]>
* @Annotation
* @Target({"CLASS", "PROPERTY", "METHOD"})
class Until extends AbstractAnnotation
{
* @var string
private $value;
* Initialize annotation data
protected function init(): void
$this->assertKey();
$this->value = (string)$this->data['value'];
}
* Get the value
* @return string
public function getValue()
return $this->value;