-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update endpoints and codesniffer beautify
- Loading branch information
1 parent
aeeba65
commit 3fed7bf
Showing
11 changed files
with
409 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
<?php | ||
include_once( 'includes/Festivity.php' ); | ||
|
||
class LitCalFeedItem { | ||
include_once('includes/Festivity.php'); | ||
|
||
class LitCalFeedItem | ||
{ | ||
public string $uid; | ||
public string $titleText; | ||
public string $mainText; | ||
public string $redirectionUrl; | ||
public string $updateDate; | ||
|
||
public function __construct( string $key, Festivity $festivity, DateTime $publishDate, string $titleText, string $mainText ) { | ||
$this->uid = "urn:uuid:" . md5( "LITCAL-" . $key . '-' . $festivity->date->format( 'Y' ) ); | ||
$this->updateDate = $publishDate->format( "Y-m-d\TH:i:s\Z" ); | ||
public function __construct(string $key, Festivity $festivity, DateTime $publishDate, string $titleText, string $mainText) | ||
{ | ||
$this->uid = "urn:uuid:" . md5("LITCAL-" . $key . '-' . $festivity->date->format('Y')); | ||
$this->updateDate = $publishDate->format("Y-m-d\TH:i:s\Z"); | ||
$this->titleText = $titleText; | ||
$this->mainText = $mainText; | ||
$this->redirectionUrl = "https://litcal.johnromanodorazio.com/"; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.