PHP code example of icanboogie / bind-facets
1. Go to this page and download the library: Download icanboogie/bind-facets library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
icanboogie / bind-facets example snippets
use ICanBoogie\ActiveRecord\Model;
use ICanBoogie\Binding\Facets\ModelBindings;
use ICanBoogie\Facets\RecordCollection;
/**
* @param Model|ModelBindings
*
* @return RecordCollection
*/
function fetch(Model $model, array $conditions)
{
return $model->fetch_records($conditions;
}