Issues (590)

src/Query/Contract/Lockable.php (2 issues)

1
<?php
2
3
namespace Bdf\Prime\Query\Contract;
4
5
use Doctrine\DBAL\LockMode;
6
7
/**
8
 * Interface for lockable queries
9
 */
10
interface Lockable
11
{
12
    /**
13
     * Lock the row for select
14
     *
15
     * @param LockMode::* $lock  {@see LockMode} constants
0 ignored issues
show
Documentation Bug introduced by
The doc comment $lock at position 0 could not be parsed: Unknown type name '$lock' at position 0 in $lock.
Loading history...
16
     *
17
     * @return $this This Query instance.
18
     */
19
    public function lock(int $lock = LockMode::PESSIMISTIC_WRITE);
20
21
    /**
22
     * Checks whether the query is locked for select
23
     *
24
     * @param LockMode::* $lock
0 ignored issues
show
Documentation Bug introduced by
The doc comment $lock at position 0 could not be parsed: Unknown type name '$lock' at position 0 in $lock.
Loading history...
25
     *
26
     * @return boolean
27
     */
28
    public function isLocked(int $lock = LockMode::PESSIMISTIC_WRITE): bool;
29
}
30