for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/smartqq package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Slince\SmartQQ\Entity;
class Birthday
{
/**
* @var int
protected $year;
protected $month;
protected $day;
public function __construct($year, $month, $day)
$this->year = $year;
$this->month = $month;
$this->day = $day;
}
* @param int $year
public function setYear($year)
* @param int $month
public function setMonth($month)
* @param int $day
public function setDay($day)
* @return int
public function getYear()
return $this->year;
public function getMonth()
return $this->month;
public function getDay()
return $this->day;
* 创建生日.
* @param array $data
* @return Birthday
public static function createFromArray(array $data)
return new static($data['year'], $data['month'], $data['day']);