Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 21, 2017. 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
Closed
Assignees
Labels

Comments

@jmalloc
Copy link
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants