Skip to content

Commit

Permalink
Enhance PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Dec 11, 2022
1 parent 4a41811 commit 12ff860
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Generators/Ics.php
Expand Up @@ -14,9 +14,12 @@ class Ics implements Generator
protected $dateFormat = 'Ymd';
protected $dateTimeFormat = 'e:Ymd\THis';

/** @var array */
/** @var array<non-empty-string, non-empty-string> */
protected $options = [];

/**
* @param array<non-empty-string, non-empty-string> $options
*/
public function __construct(array $options = [])
{
$this->options = $options;
Expand Down
4 changes: 4 additions & 0 deletions src/Link.php
Expand Up @@ -114,6 +114,10 @@ public function google(): string
return $this->formatWith(new Google());
}

/**
* @param array<non-empty-string, non-empty-string> $options
* @return string
*/
public function ics(array $options = []): string
{
return $this->formatWith(new Ics($options));
Expand Down

0 comments on commit 12ff860

Please sign in to comment.