<?php
	class Cliente {
		private $id;
		private $nome;
		public function __construct($id = 0, $nome = NULL){
			$this->id   = $id;
			$this->nome = $nome;
		}
		public function getId(){
			return $this->id;
		}
		public function getNome(){
			return $this->nome;
		}
		public function setId($value){
			$this->id = $value;
		}
		public function setNome($value){
			$this->nome = $value;
		}
		
		public function __set ($name,$value){
			$this->$name = $value;
		}
		public function __get ($name){
			return $this->$name;
		}
	}
	
	
	$cliente = new Cliente();
	$cliente->id   = 1;
	$cliente->nome = "Fulano 1";
	
	echo $cliente->getId() . " " . $cliente->getNome();

// your code goes here