![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/app/bundles/CoreBundle/Entity/ |
<?php declare(strict_types=1); namespace Mautic\CoreBundle\Entity; /** * Optimistic locking is applied for entities that implements this interface. */ interface OptimisticLockInterface { /** * Returns the current version of the entity. */ public function getVersion(): int; /** * Sets a new version of the entity and resets the mark for incrementing the version. */ public function setVersion(int $version): void; /** * Returns true if the entity is marked for incrementing the version in a subsequent flush call. */ public function isMarkedForVersionIncrement(): bool; /** * Mark the entity for incrementing the version in a subsequent flush call. */ public function markForVersionIncrement(): void; /** * Returns the name of the version field. */ public function getVersionField(): string; }