Initial Commit
This commit is contained in:
22
core/Elements/Source.class.php
Normal file
22
core/Elements/Source.class.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Elements;
|
||||
|
||||
class Source extends \View {
|
||||
|
||||
protected $sourceType;
|
||||
protected $url;
|
||||
|
||||
public function __construct($sourceType, $url) {
|
||||
$this->sourceType = $sourceType;
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
public function getCode() {
|
||||
return "<$sourceType />";
|
||||
}
|
||||
|
||||
public function getUrl() { return $this->url; }
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user