Last active
August 29, 2015 14:24
-
-
Save pedrochaves/3bd8d2adcfadb186876f to your computer and use it in GitHub Desktop.
namespaces
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 | |
// Google/Client.php | |
class Google_Client | |
{ | |
} | |
// Google/Service/Drive.php | |
class Google_Service_Drive | |
{ | |
} | |
// Google/Service/Calendar.php | |
class Google_Service_Calendar | |
{ | |
} |
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 | |
// Arquivo Google/Service/Calendar | |
namespace Google\Service; | |
use Google\Client; // A classe está no arquivo Google/Client.php; | |
class Calendar | |
{ | |
private $client; | |
public function __construct(Client $client) | |
{ | |
$this->client = $client; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment