for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Component\Association\Model;
use Sylius\Component\Resource\Model\TimestampableTrait;
/**
* @author Leszek Prabucki <[email protected]>
* @author Łukasz Chruściel <[email protected]>
class AssociationType implements AssociationTypeInterface
{
use TimestampableTrait;
* @var int
protected $id;
* @var string
protected $code;
protected $name;
* @param string $name
$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 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.
public function __construct()
$this->createdAt = new \DateTime();
$this->updatedAt = new \DateTime();
}
* @return string
public function __toString()
return $this->name;
* {@inheritdoc}
public function getId()
return $this->id;
public function getCode()
return $this->code;
public function setCode($code)
$this->code = $code;
public function getName()
public function setName($name)
$this->name = $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.