32 lines
677 B
PHP
32 lines
677 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Mustache.php.
|
|
*
|
|
* (c) 2010-2017 Justin Hileman
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
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;
|
|
}
|
|
}
|