Created
October 12, 2016 08:06
-
-
Save adammbalogh/5edebf33fbc4bbcf1bfd92e3fbaa9df1 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 DbProject extends Project | |
{ | |
/** | |
* @param int $id | |
* @param string $name | |
* @param Task[] $tasks | |
*/ | |
public function __construct($id, $name, $tasks) | |
{ | |
parent::__construct($name); | |
$this->id = $id; | |
if ( ! is_null($tasks)) { | |
$this->taskCollection = new TaskCollection($tasks); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment