Skip to content

Commit

Permalink
Add PHPDoc comments with @throws tags
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed May 22, 2022
1 parent 508cd77 commit ae44806
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Models/MarkdownPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class MarkdownPost extends MarkdownDocument
public static string $sourceDirectory = '_posts';
public static string $parserClass = MarkdownPostParser::class;

/**
* @throws \Exception
*/
public function __construct(array $matter, string $body, string $title = '', string $slug = '')
{
parent::__construct($matter, $body, $title, $slug);
Expand Down
3 changes: 3 additions & 0 deletions src/Services/RssFeedService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public function __construct()
$this->addInitialChannelItems();
}

/**
* @throws \Exception
*/
public function generate(): self
{
/** @var MarkdownPost $post */
Expand Down

0 comments on commit ae44806

Please sign in to comment.