for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AbstractAnnotation.php
*
* Common functions for Jaxon annotations.
* @package jaxon-core
* @copyright 2022 Thierry Feuzeu <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
* @link https://github.com/jaxon-php/jaxon-core
*/
namespace Jaxon\Annotations\Annotation;
use mindplay\annotations\Annotation;
abstract class AbstractAnnotation extends Annotation
{
* @var mixed
protected $xPrevValue = null;
* Set the attribute previous value
* @param mixed $xPrevValue The previous value of the attribute
* @return void
public function setPrevValue($xPrevValue)
$this->xPrevValue = $xPrevValue;
}
* Get the annotation name
* This is usually the corresponding option name in the Jaxon config.
* @return string
abstract public function getName(): string;
* Get the annotation value
* For attributes with multiple values, the previous value needs to be merged with the current.
* @return mixed
abstract public function getValue();