public function __construct($pattern = null) { $this->validator = new CrontabValidator(); if ($pattern) { $this->setPattern($pattern); } }