PHP Classes

File: tests/include/Example2.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   tests/include/Example2.php   Download  
File: tests/include/Example2.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: 8 years ago
Size: 549 bytes
 

Contents

Class file image Download
<?php
class Example2 {
    public
$args = null;
    public
$one = null;
    public
$two = null;
    public
$example = 'example';

    function
__construct($args=null) {
       
$this->args = $args;
    }
   
    function
setBoth($arg1, $arg2) {
       
$this->one = $arg1;
       
$this->two = $arg2;
    }
   
    function
setOne($arg) {
       
$this->one = $arg;
    }
   
    function
setTwo($arg) {
       
$this->two = $arg;
    }
   
    function
getArgs() {
        return
$this->args;
    }
   
    function
getOne() {
        return
$this->one;
    }
   
    function
getTwo() {
        return
$this->two;
    }
   
}