/** * @param CommentModel $Model * * @param CommentAdapter $Adapter */ public function __construct(CommentModel $Model, CommentAdapter $Adapter) { parent::__construct($Model, $Adapter); }
/** * @param PostModel $Model * * @param PostAdapter $Adapter */ public function __construct(PostModel $Model, PostAdapter $Adapter) { parent::__construct($Model, $Adapter); }
/** * @param UserModel $Model * * @param UserAdapter $Adapter */ public function __construct(UserModel $Model, UserAdapter $Adapter) { parent::__construct($Model, $Adapter); }
/** * @author Rohit Arora * * @param array $columns * * @return Collection */ public function fetch($columns = [ALL_FIELDS]) { return $this->Cache->remember('posts-' . implode('-', $columns), 60, function () use($columns) { return $this->PostContract->fetch($columns); }); }