Skip to content

Commit ba671cb

Browse files
committed
feat: timezones.
1 parent e7cfa51 commit ba671cb

File tree

3 files changed

+2662
-0
lines changed

3 files changed

+2662
-0
lines changed

src/Timezone.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types = 1);
4+
5+
namespace TeamWorkPm;
6+
7+
use TeamWorkPm\Rest\Resource;
8+
use TeamWorkPm\Rest\Resource\GetAllTrait;
9+
10+
class Timezone extends Resource
11+
{
12+
use GetAllTrait;
13+
14+
protected ?string $parent = 'timezones';
15+
16+
protected ?string $action = 'timezones';
17+
18+
protected string|array $fields = [];
19+
}

tests/TimezoneTest.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace TeamWorkPm\Tests;
4+
5+
final class TimezoneTest extends TestCase
6+
{
7+
public function testAll(): void
8+
{
9+
$this->assertGreaterThan(0, count($this->factory('timezone', [
10+
'GET /timezones' => true
11+
])->all()));
12+
}
13+
}

0 commit comments

Comments
 (0)