<?php
require_once "Model.php";

class User extends Model{
	public $nome;
	public $idade;
	public $id;
	
	//array precisa ter o mesmo nome da tabela
	public $telefone = array();
	
	public $table = "user";
	public static function teste(){
		return "teste";
	}

	function __construct(){
		
	}
	

	function setNome($nome){
		$this->nome = $nome;
	}

	function setIdade($idade){
		$this->idade = $idade;
	}

	function setId($id){
		$this->id = $id;
	}

	function getNome(){
		return $this->nome;
	}
	function getIdade(){
		return $this->idade;
	}

	function getId(){
		return $this->id;
	}
	function getTelefone(){
		return $this->telefone;
	}


	function adicionar(){
		parent::inserir($this->table, array('nome'=> $this->nome, 'idade'=> $this->idade));
	}
	
	public static function listar(){
		

	}
	
	function apagar(){
		
	}

	function buscar(){
		
	}
	function editar(){
		
	}

	


}

?>
