Skip to content

Commit

Permalink
Move Germany holidays to new sub namespace Preset
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Feb 5, 2017
1 parent b7ed2f5 commit 1a7e579
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AbstractDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public static function setDefaultHolidays(HolidaysInterface $holidays)
public static function getDefaultHolidays(): HolidaysInterface
{
if (!self::$defaultHolidays) {
self::$defaultHolidays = new Holidays\Germany();
self::$defaultHolidays = new Holidays\Preset\Germany();
}

return self::$defaultHolidays;
Expand Down
3 changes: 2 additions & 1 deletion src/Holidays/Germany.php → src/Holidays/Preset/Germany.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
* file that was distributed with this source code.
*/

namespace Yakamara\DateTime\Holidays;
namespace Yakamara\DateTime\Holidays\Preset;

use Yakamara\DateTime\Date;
use Yakamara\DateTime\Holidays\AbstractHolidays;

class Germany extends AbstractHolidays
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/

namespace Yakamara\DateTime\Tests\Holidays;
namespace Yakamara\DateTime\Tests\Holidays\Preset;

use Yakamara\DateTime\Date;
use Yakamara\DateTime\DateTime;
use Yakamara\DateTime\DateTimeInterface;
use Yakamara\DateTime\Holidays\Germany;
use Yakamara\DateTime\Holidays\Preset\Germany;

final class GermanyTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 1a7e579

Please sign in to comment.