Skip to content

Instantly share code, notes, and snippets.

@JackNoordhuis
Created August 10, 2017 08:42
Show Gist options
  • Save JackNoordhuis/814d635735fa33011f277225cc2d9129 to your computer and use it in GitHub Desktop.
Save JackNoordhuis/814d635735fa33011f277225cc2d9129 to your computer and use it in GitHub Desktop.
hold this L boi
<?php
Class Gary extends YouTuber {
private $isSnail = false;
private $hasClickbaitContent = false;
public function setIsSnail(bool $value = true) {
$this->isSnail = $value;
}
public function setHasClickbaitContent(bool $value = true) {
$this->hasClickbaitContent = $value;
}
public function isSnail() : bool {
return $this->isSnail;
}
public function hasClickbaitContent() : bool {
return $this->hasClickbaitContent();
}
}
$gary = new Gary();
while(!$gary->hasClickbaitContent()) {
if(stripos($gary->getLatestVideo()->getTitle(), “3am”) !== false) {
echo “damn nigga that some clickbait”;
if($gary->getSubscriberCount() >= 1000000) {
$gary->setHasClickbaitContent();
}
}
}
echo “damn nigga you a fraud”;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment