public function __construct($filename = false, $weekStart = false)
{
if (!$filename) {
return false;
}
if (is_array($filename)) {
$lines = $filename;
} else {
$lines = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
}
if ($weekStart) {
$this->defaultWeekStart = $weekStart;
}
$this->initLines($lines);
}