public function __construct() { // creating a collection for storing menus $this->collection = new Collection(); }