Last active
June 27, 2025 16:16
-
-
Save devajmeireles/9f794e11c95bcb604788467f3a65c149 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
class Users | |
{ | |
private Carbon $carbon; | |
public function __construct(Carbon $carbon) | |
{ | |
$this->carbon = $carbon; | |
} | |
/** @throws Exception */ | |
private function request() | |
{ | |
// Using curl... | |
$ch = curl_init('https://aj.dev.br/f'); | |
// ... | |
} | |
public function getAllCreatedToday() | |
{ | |
// ... | |
} | |
public function getCountCreatedToday() | |
{ | |
// ... | |
} | |
} | |
$users = new Users(); | |
echo $users->getCountCreatedToday() . PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment