for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Audiens\AppnexusClient\entity;
/**
* Class ReportStatus
*/
class ReportStatus extends ReportTicket
{
use HydratableTrait;
const STATUS_READY = 'ready';
/** @var string */
protected $status;
protected $name;
protected $url;
* ReportStatus constructor.
public function __construct()
$this->report_id = null;
$this->cached = false;
$cached
string
false
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
}
* @return string
public function getStatus()
return $this->status;
* @param string $status
public function setStatus($status)
$this->status = $status;
public function getName()
return $this->name;
* @param string $name
public function setName($name)
$this->name = $name;
public function getUrl()
return $this->url;
* @param string $url
public function setUrl($url)
$this->url = $url;
* @return bool
public function isReady()
return $this->status == self::STATUS_READY;
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.