Skip to content

Class with no methods other than ctor does not show up in check command. #92

Closed
jmalloc opened this Issue Jan 21, 2013 · 0 comments

2 participants

@jmalloc
Eloquent member
jmalloc commented Jan 21, 2013

Following class was ignored by check command, but I feel it should have been caught.

<?php
namespace Icecave\Chrono;

/**
 * Represents a date/time.
 */
class DateTime
{
    /**
     * @param integer       $year
     * @param integer       $month
     * @param integer       $day
     * @param integer       $hours
     * @param integer       $minutes
     * @param integer       $seconds
     * @param TimeZone|null $timeZone
     */
    public function __construct(
        $year,
        $month,
        $day,
        $hours = 0,
        $minutes = 0,
        $seconds = 0,
        TimeZone $timeZone = null
    ) {
        if ($timeZone === null) {
            $timeZone = new TimeZone;
        }

        $this->year = $year;
        $this->month = $month;
        $this->day = $day;
        $this->hours = $hours;
        $this->minutes = $minutes;
        $this->seconds = $seconds;
        $this->timeZone = $timeZone;
    }

    private $year;
    private $month;
    private $day;
    private $hours;
    private $minutes;
    private $seconds;
    private $timeZone;
}
@ezzatron ezzatron was assigned Jan 21, 2013
@ezzatron ezzatron closed this in 35b9307 Jan 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.