This commit is contained in:
2025-02-03 18:49:47 +03:00
parent f1a79d66ec
commit dd62ad0ca4
1739 changed files with 154102 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace goodboyalex\php_components_pack\traits\ObjectArray;
use Closure;
/**
* Часть кода класса ObjectArray, отвечающая за константы.
*
* @author Александр Бабаев
* @package php_components_pack
* @version 1.0
* @since 1.0
*/
trait ObjectArrayConstantsTrait
{
/**
* @var Closure Функция сравнения объектов по умолчанию.
*/
public Closure $DefaultComparerFunction {
get {
return fn (mixed $currentPropertyValue, mixed $searchPropertyValue): bool
=> $currentPropertyValue === $searchPropertyValue;
}
}
}