src/Model/Table/TokensTable.php
public function findToken(Query $query, array $options)
    {
        $options += [
            'token' => null,
            'expired >' => new DateTime(),
            'status' => false
        ];

        return $query->where($options);
    }
public function findToken(Query $query, array $options)
    {
        $options += [
            'token' => null,
            'expired >' => new DateTime(),
            'status' => false
        ];

        return $query->where($options);
    }
public function findToken ( Query $ query , array $ options ) { $ options += [ 'token' => null , 'expired >' => new DateTime ( ) , 'status' => false ] ; return $ query -> where ( $ options ) ; }
Custom finder "token"

@param \Cake\ORM\Query $query Query
@param array $options Options
@return \Cake\ORM\Query
Custom finder token