for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Goldoni\Builder\Entities;
/**
* Class Demo.
*/
class Demo
{
* @var int
public $id;
* @var string
public $firstName;
public $lastName;
public $email;
public $mobile;
public $phone;
public $deletedAt;
public $createdAt;
public $updatedAt;
public function __construct()
}
* @return string
public function getCreatedAt(): string
return $this->createdAt;
* @param null|string $datetime
public function setCreatedAt(?string $datetime = null): void
if (\is_string($datetime)) {
$this->createdAt = new \DateTime($datetime);
new DateTime($datetime)
DateTime
string
$createdAt
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..
public function getUpdatedAt(): string
return $this->updatedAt;
public function setUpdatedAt(?string $datetime = null): void
$this->updatedAt = new \DateTime($datetime);
$updatedAt
public function getDeletedAt(): string
return $this->deletedAt;
public function setDeletedAt(?string $datetime = null): void
$this->deletedAt = new \DateTime($datetime);
$deletedAt
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..