| @@ 11-20 (lines=10) @@ | ||
| 8 | protected $lastmod = null; |
|
| 9 | protected $urlCount = 0; |
|
| 10 | ||
| 11 | public function setLoc($loc) |
|
| 12 | { |
|
| 13 | if (strlen($loc) > 2048) { |
|
| 14 | throw new \DomainException('The loc value must be less than 2,048 characters'); |
|
| 15 | } |
|
| 16 | ||
| 17 | $this->loc = $loc; |
|
| 18 | ||
| 19 | return $this; |
|
| 20 | } |
|
| 21 | ||
| 22 | public function getLoc() |
|
| 23 | { |
|
| @@ 22-31 (lines=10) @@ | ||
| 19 | protected $videos = []; |
|
| 20 | protected $images = []; |
|
| 21 | ||
| 22 | public function setLoc($loc) |
|
| 23 | { |
|
| 24 | if (strlen($loc) > 2048) { |
|
| 25 | throw new \DomainException('The loc value must be less than 2,048 characters'); |
|
| 26 | } |
|
| 27 | ||
| 28 | $this->loc = $loc; |
|
| 29 | ||
| 30 | return $this; |
|
| 31 | } |
|
| 32 | ||
| 33 | public function getLoc() |
|
| 34 | { |
|
| @@ 34-43 (lines=10) @@ | ||
| 31 | protected $platforms = null; |
|
| 32 | protected $live = null; |
|
| 33 | ||
| 34 | public function setTitle($title) |
|
| 35 | { |
|
| 36 | if (strlen($title) > 100) { |
|
| 37 | throw new \DomainException('The title value must be less than 100 characters'); |
|
| 38 | } |
|
| 39 | ||
| 40 | $this->title = $title; |
|
| 41 | ||
| 42 | return $this; |
|
| 43 | } |
|
| 44 | ||
| 45 | public function getTitle() |
|
| 46 | { |
|
| @@ 62-71 (lines=10) @@ | ||
| 59 | return $this->thumbnailLoc; |
|
| 60 | } |
|
| 61 | ||
| 62 | public function setDescription($description) |
|
| 63 | { |
|
| 64 | if (strlen($description) > 2048) { |
|
| 65 | throw new \DomainException('The description value must be less than 2,048 characters'); |
|
| 66 | } |
|
| 67 | ||
| 68 | $this->description = $description; |
|
| 69 | ||
| 70 | return $this; |
|
| 71 | } |
|
| 72 | ||
| 73 | public function getDescription() |
|
| 74 | { |
|
| @@ 240-249 (lines=10) @@ | ||
| 237 | return $this->tags; |
|
| 238 | } |
|
| 239 | ||
| 240 | public function setCategory($category) |
|
| 241 | { |
|
| 242 | if (strlen($category) > 256) { |
|
| 243 | throw new \DomainException('The category value must be less than 256 characters'); |
|
| 244 | } |
|
| 245 | ||
| 246 | $this->category = $category; |
|
| 247 | ||
| 248 | return $this; |
|
| 249 | } |
|
| 250 | ||
| 251 | public function getCategory() |
|
| 252 | { |
|