for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlgoWeb\ODataMetadata\Atom;
/**
* Class representing AtomDateConstructType
*
* XSD Type: atomDateConstruct
*/
class AtomDateConstructType
{
* @property \DateTime $__value
private $__value = null;
* @property string $base
private $base = null;
* @property string $lang
private $lang = null;
* Construct
* @param \DateTime $value
public function __construct(\DateTime $value)
$this->value($value);
}
* Gets or sets the inner value
$value
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return \DateTime
public function value()
if ($args = func_get_args()) {
$this->__value = $args[0];
return $this->__value;
* Gets a string value
* @return string
public function __toString()
return strval($this->__value);
* Gets as base
public function getBase()
return $this->base;
* Sets a new base
* @param string $base
* @return self
public function setBase($base)
$this->base = $base;
return $this;
* Gets as lang
public function getLang()
return $this->lang;
* Sets a new lang
* @param string $lang
public function setLang($lang)
$this->lang = $lang;
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.