for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Zemit Framework.
*
* (c) Zemit Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Zemit\Mvc\Controller\Traits\Actions\Rest;
use Exception;
use Phalcon\Http\ResponseInterface;
use Zemit\Mvc\Controller\Traits\Abstracts\AbstractInjectable;
use Zemit\Mvc\Controller\Traits\Abstracts\AbstractModel;
use Zemit\Mvc\Controller\Traits\Abstracts\AbstractQuery;
use Zemit\Mvc\Controller\Traits\Abstracts\AbstractRestResponse;
trait MaximumAction
{
use AbstractInjectable;
use AbstractQuery;
use AbstractRestResponse;
* Maximum value of a column
* Alias for maximumAction
* @link maximumAction()
* @throws Exception
public function maxAction(): ResponseInterface
return $this->maximumAction();
}
public function maximumAction(): ResponseInterface
$this->view->setVar('maximum', $this->maximum());
return $this->setRestResponse(true);