Code Duplication    Length = 8-8 lines in 3 locations

src/cli/Database/Base/Connection.php 1 location

@@ 404-411 (lines=8) @@
401
     *
402
     * @throws PropelException - if unable to parse/validate the date/time value.
403
     */
404
    public function getStarted($format = NULL)
405
    {
406
        if ($format === null) {
407
            return $this->started;
408
        } else {
409
            return $this->started instanceof \DateTime ? $this->started->format($format) : null;
410
        }
411
    }
412
413
    /**
414
     * Get the [type] column value.

src/cli/Database/Base/Input.php 1 location

@@ 401-408 (lines=8) @@
398
     *
399
     * @throws PropelException - if unable to parse/validate the date/time value.
400
     */
401
    public function getStarted($format = NULL)
402
    {
403
        if ($format === null) {
404
            return $this->started;
405
        } else {
406
            return $this->started instanceof \DateTime ? $this->started->format($format) : null;
407
        }
408
    }
409
410
    /**
411
     * Get the [input] column value.

src/cli/Database/Base/Subscription.php 1 location

@@ 466-473 (lines=8) @@
463
     *
464
     * @throws PropelException - if unable to parse/validate the date/time value.
465
     */
466
    public function getStarted($format = NULL)
467
    {
468
        if ($format === null) {
469
            return $this->started;
470
        } else {
471
            return $this->started instanceof \DateTime ? $this->started->format($format) : null;
472
        }
473
    }
474
475
    /**
476
     * Get the [optionally formatted] temporal [stopped] column value.