PHP Classes

File: examples/orm/User.php

Recommend this page to a friend!
  Packages of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/orm/User.php   Download  
File: examples/orm/User.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 10 years ago
Size: 363 bytes
 

Contents

Class file image Download
<?php

class User    {

    protected $id, $name;

    public function __construct($id=null, $name='')    {
        $this->id = $id;
        $this->name = $name;
    }

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

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

    public function getName()    {
        return $this->name;
    }

    public function setName($name)    {
        $this->name = $name;
    }

}