Last active
October 12, 2016 07:34
-
-
Save adammbalogh/f0747d910d7044e9e5d502c7d3c89074 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
class Task | |
{ | |
/** @var null|int */ | |
protected $id; | |
/** @var string */ | |
protected $name; | |
public function __construct($name) | |
{ | |
$this->name = $name; | |
} | |
public function getId() | |
{ | |
return $this->id; | |
} | |
public function getName() | |
{ | |
return $this->name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment