public function format() { $lines = ''; foreach ($this->lines as $line) { $lines .= $line->format() . PHP_EOL; } return ($this->hasHeader() ? $this->header->format() . PHP_EOL : '') . trim($lines) . PHP_EOL; }
private function wrapInKey(Cron $cron, $key) { return PHP_EOL . $this->beginKey($key) . PHP_EOL . trim($cron->format()) . PHP_EOL . self::KEY_END; }