This repository has been archived by the owner. It is now read-only.

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

Comments

Projects
None yet
2 participants
@jmalloc
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;
}

@ghost ghost assigned ezzatron Jan 21, 2013

@ezzatron ezzatron closed this in 35b9307 Jan 22, 2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.