这个语法看起来如何?

时间:2010-10-02 07:04:11

标签: php syntax

这种语法看起来如何?

class Priorities {

//Declaring the collective
$private family;
$private friends;
$protected vocation;

//Starters 
private function __construct() {
    define("CONSTANT", "Jesus Christ");
    define("CONSTANT", "Some World");
}

private function setMyTrunk() {
     return $this->family + $this->friends;
}


protected function setGiveBack($empathy) {
     $this->vocation = $this->senseOfPurpose() * $empathy;
}

public function senseOfPurpose() {
     define("PEOPLE", "Us all together");
     return PEOPLE;
}

}

1 个答案:

答案 0 :(得分:0)

看起来它没有太多用作计算机程序:)