%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/lib/Db/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/lib/Db/RegistrationMapper.php

<?php
/**
 * This file is part of the Passwords App
 * created by Marius David Wieschollek
 * and licensed under the AGPL.
 */

namespace OCA\Passwords\Db;

use OCP\DB\QueryBuilder\IQueryBuilder;

/**
 * Class RegistrationMapper
 *
 * @package OCA\Passwords\Db
 */
class RegistrationMapper extends AbstractMapper {
    const TABLE_NAME = 'passwords_registration';

    /**
     * @param int $created
     *
     * @return Registration[]
     */
    public function findAllOlderThan(int $created): array {
        $sql = $this->getStatement();

        $sql->andWhere(
            $sql->expr()->lte('created', $sql->createNamedParameter($created, IQueryBuilder::PARAM_INT))
        );

        return $this->findEntities($sql);
    }
}

Zerion Mini Shell 1.0