for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace mikemix\Wiziq\Entity;
class Classroom
{
/** @var string */
private $title;
/** @var \DateTime */
private $startTime;
private $presenterEmail;
public function __construct($title, \DateTime $startTime, $presenterEmail)
$this->title = (string)$title;
$this->startTime = $startTime->format('d/m/Y H:i:s');
$startTime->format('d/m/Y H:i:s')
string
object<DateTime>
$startTime
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->presenterEmail = (string)$presenterEmail;
}
/**
* @param string $title
* @param \DateTime $startTime
* @param string $presenterEmail
* @return self
*/
public static function build($title, \DateTime $startTime, $presenterEmail)
return new self($title, $startTime, $presenterEmail);
* @return string
public function __toString()
return $this->title;
* @return array
public function toArray()
return [
'title' => $this->title,
'start_time' => $this->startTime,
'presenter_email' => $this->presenterEmail,
];
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..