Created
June 3, 2017 23:57
-
-
Save ahmedash95/724e1dc1f4b1963e24c48f4a38f15bbb to your computer and use it in GitHub Desktop.
Mastring create Laravel Packages
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 TwitterFeed { | |
private $consumerKey; | |
private $consumerSecret; | |
private $accessToken; | |
private $accessSecret | |
public function __constrcut($config){ | |
$this->consumerKey = $config['consumer_key']; | |
$this->consumerSecret = $config['consumer_secret']; | |
$this->accessToken = $config['access_token']; | |
$this->accessSecret = $config['access_secret']; | |
} | |
// ... etc | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment