| Total Complexity | 7 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class MockEmbed implements Embeddable, TestOnly |
||
| 9 | { |
||
| 10 | protected $url; |
||
| 11 | |||
| 12 | public function __construct($url) |
||
| 13 | { |
||
| 14 | $this->url = $url; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function getWidth() |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getHeight() |
||
| 23 | { |
||
| 24 | return 100; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getPreviewURL() |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get human readable name for this resource |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getName() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get Embed type |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getType() |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Validate this resource |
||
| 54 | * |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function validate() |
||
| 62 |