Skip to content

Commit

Permalink
0.1.20
Browse files Browse the repository at this point in the history
- add `OpdsEntryBookAuthor`
  • Loading branch information
ewilan-riviere committed May 9, 2023
1 parent bea71e1 commit 882087e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/php-opds",
"description": "PHP package to create OPDS feed for eBooks.",
"version": "0.1.10",
"version": "0.1.20",
"keywords": [
"php",
"ebook",
Expand Down
27 changes: 0 additions & 27 deletions src/Models/OpdsEntryBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,30 +96,3 @@ public function toArray(): array
]);
}
}

class OpdsEntryBookAuthor
{
public function __construct(
protected string $name,
protected ?string $uri = null,
) {
}

public function name(): string
{
return $this->name;
}

public function uri(): ?string
{
return $this->uri;
}

public function toArray(): array
{
return [
'name' => $this->name(),
'uri' => $this->uri(),
];
}
}
30 changes: 30 additions & 0 deletions src/Models/OpdsEntryBookAuthor.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Kiwilan\Opds\Models;

class OpdsEntryBookAuthor
{
public function __construct(
protected string $name,
protected ?string $uri = null,
) {
}

public function name(): string
{
return $this->name;
}

public function uri(): ?string
{
return $this->uri;
}

public function toArray(): array
{
return [
'name' => $this->name(),
'uri' => $this->uri(),
];
}
}

0 comments on commit 882087e

Please sign in to comment.