for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: christian
* Date: 1/4/17
* Time: 4:14 AM
*/
namespace Veloci\Core\Model;
use Veloci\Core\EntityIndex;
* Class IntegerIndex
*
* @package Veloci\Core\Model
class IntegerIndex implements EntityIndex
{
* @var int
private $value;
* IntegerIndex constructor.
* @param int $value
public function __construct(int $value) {
$this->value = $value;
}
* @return mixed
integer
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function getValue()
return $this->value;
* @return string
public function __toString():string
return (string)$this->value;
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.