for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Date: 3/17/17
*
* @author Volodymyr Rashchepkin <[email protected]>
*/
namespace Youshido\GraphQL\Parser\Ast;
use Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface;
use Youshido\GraphQL\Parser\Location;
class Directive extends AbstractAst
{
use AstArgumentsTrait;
/** @var string */
private $name;
* @param string $name
* @param ValueInterface $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.
* @param Location $location
public function __construct($name, array $arguments, Location $location)
parent::__construct($location);
$this->name = $name;
$this->setArguments($arguments);
}
* @return mixed
public function getName()
return $this->name;
* @param mixed $name
public function setName($name)
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.