Skip to content

Commit 0dc2b92

Browse files
committed
preparing the resources
1 parent 4dcba06 commit 0dc2b92

13 files changed

+68
-66
lines changed

database/factories/ModelFactory.php

-19
This file was deleted.

database/migrations/create_sendy_table.php.stub

-19
This file was deleted.

resources/views/.gitkeep

Whitespace-only changes.

src/Commands/LaravelSendyCommand.php

-19
This file was deleted.

src/DTOs/CompaignDTO.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Coderflex\LaravelSendy\DTOs;
4+
5+
class CompaignDTO
6+
{
7+
public function __construct(
8+
//
9+
) {}
10+
}

src/DTOs/SubscribersDTO.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Coderflex\LaravelSendy\DTOs;
4+
5+
class SubscribersDTO
6+
{
7+
public function __construct(
8+
//
9+
) {}
10+
}

src/Exceptions/CompaingException.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Coderflex\LaravelSendy\DTOs;
4+
5+
class CompaingException extends \Exception
6+
{
7+
//
8+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Coderflex\LaravelSendy\DTOs;
4+
5+
class SubscribersException extends \Exception
6+
{
7+
//
8+
}

src/LaravelSendyServiceProvider.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Coderflex\LaravelSendy;
44

5-
use Coderflex\LaravelSendy\Commands\LaravelSendyCommand;
65
use Spatie\LaravelPackageTools\Package;
76
use Spatie\LaravelPackageTools\PackageServiceProvider;
87

@@ -17,9 +16,6 @@ public function configurePackage(Package $package): void
1716
*/
1817
$package
1918
->name('laravel-sendy')
20-
->hasConfigFile()
21-
->hasViews()
22-
->hasMigration('create_laravel_sendy_table')
23-
->hasCommand(LaravelSendyCommand::class);
19+
->hasConfigFile();
2420
}
2521
}

src/Resources/Brands.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
class Brands
66
{
7-
//
7+
public function get()
8+
{
9+
//
10+
}
811
}

src/Resources/Campaigns.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
class Campaigns
66
{
7-
//
7+
public function create(array $data)
8+
{
9+
//
10+
}
811
}

src/Resources/Lists.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
class Lists
66
{
7-
//
7+
public function get(int $brandId, bool $includeHidden = false)
8+
{
9+
// Implementation to get lists
10+
}
811
}

src/Resources/Subscribers.php

+19-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,23 @@
44

55
class Subscribers
66
{
7-
//
7+
public function subscribe(array $data)
8+
{
9+
//
10+
}
11+
12+
public function unsubscribe(int $listId, string $email)
13+
{
14+
//
15+
}
16+
17+
public function delete(int $listId, string $email)
18+
{
19+
//
20+
}
21+
22+
public function count(int $listId)
23+
{
24+
//
25+
}
826
}

0 commit comments

Comments
 (0)