Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Cliente{
- public $nome;
- protected $email;
- public function getEmail(){
- return $this->email;
- }
- public function setEmail($email){
- if(filter_var(FILTER_VALIDATE_EMAIL))
- $this->email=$email;
- return true;
- }
- exit('Email invalido');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement