Files
Mustache/test/fixtures/examples/complex/complex.php
T
Justin Hileman 2448992cc8 Update to proposed PSR-1 coding standard.
* 4 space (no tab) indent
 * K&R-style braces
2012-05-01 22:03:39 -07:00

23 lines
466 B
PHP

<?php
class Complex
{
public $header = 'Colors';
public $item = array(
array('name' => 'red', 'current' => true, 'url' => '#Red'),
array('name' => 'green', 'current' => false, 'url' => '#Green'),
array('name' => 'blue', 'current' => false, 'url' => '#Blue'),
);
public function notEmpty()
{
return !($this->isEmpty());
}
public function isEmpty()
{
return count($this->item) === 0;
}
}