J. King
4 years ago
22 changed files with 1848 additions and 152 deletions
@ -1,3 +1,2 @@ |
|||
vendor |
|||
samples |
|||
test.php |
|||
/vendor |
|||
/vendor-bin/*/vendor |
|||
|
@ -0,0 +1,36 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2018 J. King et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace JKingWeb\Lax\Parser; |
|||
|
|||
use JKingWeb\Lax\Person\Collection as PersonCollection; |
|||
use JKingWeb\Lax\Category\Collection as CategoryCollection; |
|||
|
|||
interface Entry { |
|||
/** General function to fetch the entry title */ |
|||
abstract public function getTitle(): string; |
|||
|
|||
/** General function to fetch the categories of an entry */ |
|||
abstract public function getCategories(): CategoryCollection; |
|||
|
|||
/** General function to fetch the entry identifier */ |
|||
abstract public function getId(): string; |
|||
|
|||
/** General function to fetch a collection of people associated with an entry */ |
|||
abstract public function getPeople(): PersonCollection; |
|||
|
|||
/** General function to fetch the entry's modification date */ |
|||
abstract public function getDateModified(); |
|||
|
|||
/** General function to fetch the entry's creation date */ |
|||
abstract public function getDateCreated(); |
|||
|
|||
/** General function to fetch the Web URL of the entry */ |
|||
abstract public function getLink(): string; |
|||
|
|||
/** General function to fetch the URL of a article related to the entry */ |
|||
abstract public function getRelatedLink(): string; |
|||
} |
@ -0,0 +1,39 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2018 J. King et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace JKingWeb\Lax\Parser; |
|||
|
|||
use JKingWeb\Lax\Person\Collection as PersonCollection; |
|||
use JKingWeb\Lax\Category\Collection as CategoryCollection; |
|||
|
|||
interface Feed { |
|||
/** General function to fetch the canonical feed URL */ |
|||
abstract public function getUrl(): string; |
|||
|
|||
/** General function to fetch the feed title */ |
|||
abstract public function getTitle(): string; |
|||
|
|||
/** General function to fetch the feed's Web-representation URL */ |
|||
abstract public function getLink(): string; |
|||
|
|||
/** General function to fetch the description of a feed */ |
|||
abstract public function getSummary(): string; |
|||
|
|||
/** General function to fetch the categories of a feed */ |
|||
abstract public function getCategories(): CategoryCollection; |
|||
|
|||
/** General function to fetch the feed identifier */ |
|||
abstract public function getId(): string; |
|||
|
|||
/** General function to fetch a collection of people associated with a feed */ |
|||
abstract public function getPeople(): PersonCollection; |
|||
|
|||
/** General function to fetch the feed's modification date */ |
|||
abstract public function getDateModified(); |
|||
|
|||
/** General function to fetch the feed's modification date */ |
|||
abstract public function getEntries() : array; |
|||
} |
@ -0,0 +1,5 @@ |
|||
{ |
|||
"require-dev": { |
|||
"phpunit/phpunit": "^9.0" |
|||
} |
|||
} |
File diff suppressed because it is too large
Loading…
Reference in new issue