<?php namespace vhOrganizer\calender; class Calender { function __construct($month) { //$month should be an integer between 1-12 if (is_int($month)) { if ($month > 0 && $month < 13) { $this->month = $month; } else { throw new Exception(); } } else { throw new Exception(); } } public function returnEmpty() { require 'content/calender.html'; } public function returnMonth() { } } $calender = new Calender(1); $calender->returnEmpty();