Skip to content

Instantly share code, notes, and snippets.

@adammbalogh
Created October 12, 2016 08:06
Show Gist options
  • Save adammbalogh/5edebf33fbc4bbcf1bfd92e3fbaa9df1 to your computer and use it in GitHub Desktop.
Save adammbalogh/5edebf33fbc4bbcf1bfd92e3fbaa9df1 to your computer and use it in GitHub Desktop.
<?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