Created
November 28, 2016 19:35
-
-
Save Akii/7cfc6bde04c59a4d5d7ab339599e6d33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @var DateTimeImmutable <-- kay | |
*/ | |
private $date; | |
protected function __construct() | |
{ | |
$this->date = date("Y-m-d H:i:s"); // <-- waaaat? | |
} | |
public function date(): string | |
{ | |
return $this->date; <- great | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment