Code Duplication    Length = 12-12 lines in 3 locations

Manager/Cron.php 3 locations

@@ 259-270 (lines=12) @@
256
     *
257
     * @return $this
258
     */
259
    public function setHour($hour)
260
    {
261
        if (is_numeric($hour) &&
262
            $hour < 0 || $hour > 23
263
        ) {
264
            throw new InvalidArgumentException('Invalid hour format', self::ERROR_HOUR);
265
        }
266
267
        $this->hour = $hour;
268
269
        return $this;
270
    }
271
272
    /**
273
     * @return string
@@ 285-296 (lines=12) @@
282
     *
283
     * @return $this
284
     */
285
    public function setMinute($minute)
286
    {
287
        if (is_numeric($minute) &&
288
            $minute < 0 || $minute > 23
289
        ) {
290
            throw new InvalidArgumentException('Invalid minute format', self::ERROR_MINUTE);
291
        }
292
293
        $this->minute = $minute;
294
295
        return $this;
296
    }
297
298
    /**
299
     * @return string
@@ 311-322 (lines=12) @@
308
     *
309
     * @return $this
310
     */
311
    public function setMonth($month)
312
    {
313
        if (is_numeric($month) &&
314
            $month < 1 || $month > 12
315
        ) {
316
            throw new InvalidArgumentException('Invalid month format', self::ERROR_MONTH);
317
        }
318
319
        $this->month = $month;
320
321
        return $this;
322
    }
323
324
    /**
325
     * @return string