Skip to content

Instantly share code, notes, and snippets.

@jimbojsb
Created December 4, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimbojsb/4208428 to your computer and use it in GitHub Desktop.
Save jimbojsb/4208428 to your computer and use it in GitHub Desktop.
PHPStorm constructor generation idea
From this:
class FtpTransport
{
public function __construct($host, $username, $password)
{
}
}
Allow me to generate this:
class FtpTransport
{
protected $host;
protected $usenrame;
protected $password;
public function __construct($host, $username, $password)
{
$this->host = $host;
$this->username = $username;
$this->password = $password;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment