Created
September 24, 2012 17:34
-
-
Save geovanerocha/3777194 to your computer and use it in GitHub Desktop.
Declaring namespaces @ PHP.
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 | |
namespace Foo; | |
class FooClass | |
{ | |
protected $name; | |
protected $userName; | |
protected $password; | |
public function setData($name, $userName, $password) | |
{ | |
$this->name = $name; | |
$this->userName = $userName; | |
$this->password = $password; | |
return true; | |
} | |
public function getName() | |
{ | |
return $this->name; | |
} | |
public function getUserName() | |
{ | |
return $this->userName; | |
} | |
public function getPassword() | |
{ | |
return $this->password; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment