Skip to content

Commit

Permalink
Revert "Make classes final"
Browse files Browse the repository at this point in the history
This reverts commit 99c1f65.
This commit is moved to v0.2 branch, to be relased later.
  • Loading branch information
BenMorel committed Nov 14, 2018
1 parent 069ecd8 commit cba7214
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/Clock/FixedClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* This clock always returns the same instant. It is typically used for testing.
*/
final class FixedClock implements Clock
class FixedClock implements Clock
{
/**
* @var Instant
Expand Down
2 changes: 1 addition & 1 deletion src/Clock/OffsetClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* This clock adds an offset to an underlying clock.
*/
final class OffsetClock implements Clock
class OffsetClock implements Clock
{
/**
* The reference clock.
Expand Down
2 changes: 1 addition & 1 deletion src/Clock/ScaleClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* This clock makes the time move at a given pace.
*/
final class ScaleClock implements Clock
class ScaleClock implements Clock
{
/**
* The reference clock.
Expand Down
2 changes: 1 addition & 1 deletion src/Clock/SystemClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* This clock has a microsecond precision on most systems.
*/
final class SystemClock implements Clock
class SystemClock implements Clock
{
/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion src/DayOfWeek.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* This class is immutable.
*/
final class DayOfWeek
class DayOfWeek
{
const MONDAY = 1;
const TUESDAY = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/Duration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* This class is immutable.
*/
final class Duration
class Duration
{
/**
* The duration in seconds.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/FractionOfSecond.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* as its length can range anywhere from 1 to 9; the number is then padded right with
* zeros to make it 9 digits long, effectively becoming a nano-of-second.
*/
final class FractionOfSecond
class FractionOfSecond
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/HourOfDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The hour-of-day field.
*/
final class HourOfDay
class HourOfDay
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/MinuteOfHour.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The minute-of-hour field.
*/
final class MinuteOfHour
class MinuteOfHour
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/NanoOfSecond.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The nano-of-second field.
*/
final class NanoOfSecond
class NanoOfSecond
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/SecondOfDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The second-of-day field.
*/
final class SecondOfDay
class SecondOfDay
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/SecondOfMinute.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The second-of-minute field.
*/
final class SecondOfMinute
class SecondOfMinute
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeZoneOffsetHour.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The hour part of the time-zone offset.
*/
final class TimeZoneOffsetHour
class TimeZoneOffsetHour
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeZoneOffsetMinute.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The minute part of the time-zone offset.
*/
final class TimeZoneOffsetMinute
class TimeZoneOffsetMinute
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeZoneOffsetSecond.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* The second part of the time-zone offset.
*/
final class TimeZoneOffsetSecond
class TimeZoneOffsetSecond
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeZoneOffsetSign.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* The time-zone offset sign, '+', '-', 'Z' or 'z'.
*/
final class TimeZoneOffsetSign
class TimeZoneOffsetSign
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeZoneOffsetTotalSeconds.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* The offset is relative to UTC/Greenwich.
*/
final class TimeZoneOffsetTotalSeconds
class TimeZoneOffsetTotalSeconds
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Field/TimeZoneRegion.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* The time-zone region, such as 'Europe/London'.
*/
final class TimeZoneRegion
class TimeZoneRegion
{
/**
* The field name.
Expand Down
2 changes: 1 addition & 1 deletion src/Instant.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* without any calendar concept of date, time or time zone. It is not very meaningful to humans,
* but can be converted to a `ZonedDateTime` by providing a time zone.
*/
final class Instant
class Instant
{
/**
* The number of seconds since the epoch of 1970-01-01T00:00:00Z.
Expand Down
2 changes: 1 addition & 1 deletion src/Interval.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This class is immutable.
*/
final class Interval
class Interval
{
/**
* The start instant, inclusive.
Expand Down
2 changes: 1 addition & 1 deletion src/LocalDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* This class is immutable.
*/
final class LocalDate
class LocalDate
{
/**
* The minimum supported year for instances of `LocalDate`, -999,999.
Expand Down
2 changes: 1 addition & 1 deletion src/LocalDateRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* This object is iterable and countable: the iterator returns all the LocalDate objects contained
* in the range, while `count()` returns the total number of dates contained in the range.
*/
final class LocalDateRange implements \IteratorAggregate, \Countable
class LocalDateRange implements \IteratorAggregate, \Countable
{
/**
* The start date, inclusive.
Expand Down
2 changes: 1 addition & 1 deletion src/LocalDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* This class is immutable.
*/
final class LocalDateTime
class LocalDateTime
{
/**
* @var LocalDate
Expand Down
2 changes: 1 addition & 1 deletion src/LocalTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* This class is immutable.
*/
final class LocalTime
class LocalTime
{
const MONTHS_PER_YEAR = 12;
const DAYS_PER_WEEK = 7;
Expand Down
2 changes: 1 addition & 1 deletion src/Month.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Represents a month-of-year such as January.
*/
final class Month
class Month
{
const JANUARY = 1;
const FEBRUARY = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/MonthDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* A month-day in the ISO-8601 calendar system, such as `--12-03`.
*/
final class MonthDay
class MonthDay
{
/**
* The month-of-year, from 1 to 12.
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/DateTimeParseResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Result of a date-time string parsing.
*/
final class DateTimeParseResult
class DateTimeParseResult
{
/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/PatternParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Matches a regular expression pattern to a set of date-time fields.
*/
final class PatternParser implements DateTimeParser
class PatternParser implements DateTimeParser
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/PatternParserBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Builds a PatternParser with a fluent API.
*/
final class PatternParserBuilder
class PatternParserBuilder
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* This class is immutable.
*/
final class Period
class Period
{
/**
* @var int
Expand Down
2 changes: 1 addition & 1 deletion src/Stopwatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Measures the time elapsed.
*/
final class Stopwatch
class Stopwatch
{
/**
* @var Clock
Expand Down
2 changes: 1 addition & 1 deletion src/TimeZoneOffset.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* A time-zone offset from Greenwich/UTC, such as `+02:00`.
*/
final class TimeZoneOffset extends TimeZone
class TimeZoneOffset extends TimeZone
{
/**
* @var int
Expand Down
2 changes: 1 addition & 1 deletion src/TimeZoneRegion.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* A geographical region where the same time-zone rules apply, such as `Europe/London`.
*/
final class TimeZoneRegion extends TimeZone
class TimeZoneRegion extends TimeZone
{
/**
* @var \DateTimeZone
Expand Down
2 changes: 1 addition & 1 deletion src/Year.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Represents a year in the proleptic calendar.
*/
final class Year
class Year
{
const MIN_VALUE = LocalDate::MIN_YEAR;
const MAX_VALUE = LocalDate::MAX_YEAR;
Expand Down
2 changes: 1 addition & 1 deletion src/YearMonth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Represents the combination of a year and a month.
*/
final class YearMonth
class YearMonth
{
/**
* The year, from MIN_YEAR to MAX_YEAR.
Expand Down
2 changes: 1 addition & 1 deletion src/YearWeek.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Represents the combination of a year and a week.
*/
final class YearWeek
class YearWeek
{
/**
* The year, from MIN_YEAR to MAX_YEAR.
Expand Down
2 changes: 1 addition & 1 deletion src/ZonedDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* A ZonedDateTime can be viewed as a LocalDateTime along with a time zone
* and targets a specific point in time.
*/
final class ZonedDateTime
class ZonedDateTime
{
/**
* The local date-time.
Expand Down

0 comments on commit cba7214

Please sign in to comment.