for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: davis
* Date: 7/23/17
* Time: 3:05 AM
*/
namespace DavisPeixoto\BlogCore\Entity;
use DateTime;
use Ramsey\Uuid\UuidInterface;
use stdClass;
* Class Author
* @package DavisPeixoto\Entity
class Author extends stdClass
{
* @var UuidInterface
private $authorId;
* @var string
private $name;
private $email;
private $bio;
* @var DateTime
private $birthdate;
* Author constructor.
* @param UuidInterface $authorId
* @param string $name
* @param string $email
* @param string $bio
* @param DateTime $birthdate
public function __construct(UuidInterface $authorId, $name, $email, $bio, DateTime $birthdate = null)
$this->authorId = $authorId;
$this->name = $name;
$this->email = $email;
$this->bio = $bio;
$this->birthdate = $birthdate;
}
* @codeCoverageIgnore
* @return UuidInterface
public function getAuthorId(): UuidInterface
return $this->authorId;
public function setAuthorId(UuidInterface $authorId)
* @return string
public function getName(): string
return $this->name;
public function setName(string $name)
public function getEmail(): string
return $this->email;
public function setEmail(string $email)
public function getBio(): string
return $this->bio;
public function setBio(string $bio)
* @return DateTime
public function getBirthdate(): DateTime
return $this->birthdate;
public function setBirthdate(DateTime $birthdate)