-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from acelaya-forks/feature/consistencies
Feature/consistencies
- Loading branch information
Showing
9 changed files
with
121 additions
and
62 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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shlinkio\Shlink\Importer\Model; | ||
|
||
use DateTimeInterface; | ||
|
||
class ImportedShlinkUrl | ||
{ | ||
private string $longUrl; | ||
private array $tags; | ||
private DateTimeInterface $createdAt; | ||
private ?string $domain; | ||
private ?string $shortCode; | ||
|
||
public function __construct( | ||
string $longUrl, | ||
array $tags, | ||
DateTimeInterface $createdAt, | ||
?string $domain, | ||
?string $shortCode | ||
) { | ||
$this->longUrl = $longUrl; | ||
$this->tags = $tags; | ||
$this->createdAt = $createdAt; | ||
$this->domain = $domain; | ||
$this->shortCode = $shortCode; | ||
} | ||
|
||
public function longUrl(): string | ||
{ | ||
return $this->longUrl; | ||
} | ||
|
||
public function tags(): array | ||
{ | ||
return $this->tags; | ||
} | ||
|
||
public function createdAt(): DateTimeInterface | ||
{ | ||
return $this->createdAt; | ||
} | ||
|
||
public function domain(): ?string | ||
{ | ||
return $this->domain; | ||
} | ||
|
||
public function shortCode(): ?string | ||
{ | ||
return $this->shortCode; | ||
} | ||
} |
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
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
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