This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring and adding youtube parser
- Loading branch information
Showing
8 changed files
with
340 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php | ||
|
||
namespace LinkPreview\Model; | ||
|
||
class VideoLink extends Link | ||
{ | ||
/** | ||
* @var string $video Url to video | ||
*/ | ||
private $video; | ||
|
||
/** | ||
* @var string $embedCode Video embed code | ||
*/ | ||
private $embedCode; | ||
|
||
/** | ||
* @var string $videoId Video identification code | ||
*/ | ||
private $videoId; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getVideo() | ||
{ | ||
return $this->video; | ||
} | ||
|
||
/** | ||
* @param string $video | ||
* @return $this | ||
*/ | ||
public function setVideo($video) | ||
{ | ||
$this->video = $video; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getEmbedCode() | ||
{ | ||
return $this->embedCode; | ||
} | ||
|
||
/** | ||
* @param string $embedCode | ||
* @return $this | ||
*/ | ||
public function setEmbedCode($embedCode) | ||
{ | ||
$this->embedCode = $embedCode; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getVideoId() | ||
{ | ||
return $this->videoId; | ||
} | ||
|
||
/** | ||
* @param string $videoId | ||
*/ | ||
public function setVideoId($videoId) | ||
{ | ||
$this->videoId = $videoId; | ||
} | ||
|
||
|
||
} |
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
Oops, something went wrong.