Skip to content
Code-Schnipsel Gruppen Projekte
ErpCopyInterface.php 532 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    namespace QUI\ERP;
    
    use QUI\Interfaces\Users\User;
    
    /**
     * The ErpCopyInterface
     *
     * When a class implements this interface, it signals that instances of this class have the ability to duplicate its data.
     * This is particularly useful for handling ERP entities that often need to be reused or replicated
     * in different contexts within the same system.
     */
    interface ErpCopyInterface
    {
        public function copy(
            User $PermissionUser = null,
            bool|string $globalProcessId = false
        ): ErpEntityInterface;
    }