CHuman.php

1 lines ASCII Unix (LF)
1
<?php
/**
 * A class for humans.
 */
class CHuman {

    /**
     * Properties
     */     
    public $age;
    public $name;
    public $profession;

// constructor
// destructor

// private

// setters & getters?

// ability
    
    /**
     * Return description of human.
     *
     * @param string $name name of Human.
     *
     */ 
    public function description() {
        return "$this->name is a $this->age old $this->profession.";
    }

    public function descriptionAsHtml($name, $age, $profession) {
        return "<p>" . description($name, $age, $profession) . "</p>";
    }
}