Skip to content

Commit

Permalink
Move namespace of Gregorian calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed May 23, 2020
1 parent 527669f commit 820d266
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?php

namespace Ocelot\Ocelot\Calendar;

use Ocelot\Ocelot\Calendar\Gregorian\DateTime;
use Ocelot\Ocelot\Calendar\Gregorian\Day;
use Ocelot\Ocelot\Calendar\Gregorian\Month;
use Ocelot\Ocelot\Calendar\Gregorian\Year;
namespace Ocelot\Ocelot\Calendar\Gregorian;

/**
* @psalm-immutable
*/
interface SolarCalendar
interface Calendar
{
public function year() : Year;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

declare(strict_types=1);

namespace Ocelot\Ocelot\Calendar;

use Ocelot\Ocelot\Calendar\Gregorian\DateTime;
use Ocelot\Ocelot\Calendar\Gregorian\Day;
use Ocelot\Ocelot\Calendar\Gregorian\Month;
use Ocelot\Ocelot\Calendar\Gregorian\Time;
use Ocelot\Ocelot\Calendar\Gregorian\Year;
namespace Ocelot\Ocelot\Calendar\Gregorian;

/**
* @psalm-immutable
*/
final class GregorianCalendar implements SolarCalendar
final class GregorianCalendar implements Calendar
{
public function year(): Year
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

declare(strict_types=1);

namespace Ocelot\Ocelot\Calendar;

use Ocelot\Ocelot\Calendar\Gregorian\DateTime;
use Ocelot\Ocelot\Calendar\Gregorian\Day;
use Ocelot\Ocelot\Calendar\Gregorian\Month;
use Ocelot\Ocelot\Calendar\Gregorian\Time;
use Ocelot\Ocelot\Calendar\Gregorian\Year;
namespace Ocelot\Ocelot\Calendar\Gregorian;

/**
* @psalm-immutable
*/
final class GregorianCalendarStub implements SolarCalendar
final class GregorianCalendarStub implements Calendar
{
private ?\DateTimeImmutable $currentDate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Ocelot\Ocelot\Calendar\Gregorian\DateTime;
use Ocelot\Ocelot\Calendar\Gregorian\TimeInterval;
use Ocelot\Ocelot\Calendar\Gregorian\TimeUnit;
use Ocelot\Ocelot\Calendar\GregorianCalendar;
use Ocelot\Ocelot\Calendar\Gregorian\GregorianCalendar;
use PHPUnit\Framework\TestCase;

final class GregorianCalendarTest extends TestCase
Expand Down

0 comments on commit 820d266

Please sign in to comment.