public function matching(callable $criteriaDefinitionCallback)
    {
        $criteria = $this->chart->getDataSource()->criteria();
        $criteriaDefinitionCallback($criteria);

        call_user_func($this->callback, new ChartWidget($this->name, $this->label, $this->authSystem, $this->requiredPermissions, $this->chart, $criteria));
    }
public function matching(callable $criteriaDefinitionCallback)
    {
        $criteria = $this->chart->getDataSource()->criteria();
        $criteriaDefinitionCallback($criteria);

        call_user_func($this->callback, new ChartWidget($this->name, $this->label, $this->authSystem, $this->requiredPermissions, $this->chart, $criteria));
    }
public function matching ( callable $ criteriaDefinitionCallback ) { $ criteria = $ this -> chart -> getDataSource ( ) -> criteria ( ) ; $ criteriaDefinitionCallback ( $ criteria ) ; call_user_func ( $ this -> callback , new ChartWidget ( $ this -> name , $ this -> label , $ this -> authSystem , $ this -> requiredPermissions , $ this -> chart , $ criteria ) ) ; }
Defines the chart criteria for the widget.

Example:
<code>
->matching(function (ChartCriteria $criteria) {
$criteria->where('column', '>', 500);
});
</code>

@see ChartCriteria

@param callable $criteriaDefinitionCallback

@return void
Defines the chart criteria for the widget .