Skip to content

AverageAction


  • Full name: \PhalconKit\Mvc\Controller\Traits\Actions\Rest\AverageAction

Methods

averageAction

Return the average value for the configured aggregate column.

public averageAction(): \Phalcon\Http\ResponseInterface

The query state is prepared by the shared query trait, so filters, identity conditions, permissions, joins, and request parameters are applied consistently with other REST aggregate actions.