[Web] update directorytree/ldaprecord

This commit is contained in:
FreddleSpl0it
2024-02-20 10:30:11 +01:00
parent 40146839ef
commit d479d18507
481 changed files with 13919 additions and 6171 deletions
@@ -8,8 +8,7 @@ interface Castable
* Get the name of the caster class to use when casting from / to this cast target.
*
* @param array $arguments
* @return string
* @return string|\Illuminate\Contracts\Database\Eloquent\CastsAttributes|\Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes
* @return class-string<CastsAttributes|CastsInboundAttributes>|CastsAttributes|CastsInboundAttributes
*/
public static function castUsing(array $arguments);
}
@@ -2,6 +2,12 @@
namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
/**
* @template TGet
* @template TSet
*/
interface CastsAttributes
{
/**
@@ -10,19 +16,19 @@ interface CastsAttributes
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param array $attributes
* @return mixed
* @param array<string, mixed> $attributes
* @return TGet|null
*/
public function get($model, string $key, $value, array $attributes);
public function get(Model $model, string $key, mixed $value, array $attributes);
/**
* Transform the attribute to its underlying model values.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param array $attributes
* @param TSet|null $value
* @param array<string, mixed> $attributes
* @return mixed
*/
public function set($model, string $key, $value, array $attributes);
public function set(Model $model, string $key, mixed $value, array $attributes);
}
@@ -2,6 +2,8 @@
namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
interface CastsInboundAttributes
{
/**
@@ -13,5 +15,5 @@ interface CastsInboundAttributes
* @param array $attributes
* @return mixed
*/
public function set($model, string $key, $value, array $attributes);
public function set(Model $model, string $key, mixed $value, array $attributes);
}
@@ -2,6 +2,8 @@
namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
interface SerializesCastableAttributes
{
/**
@@ -13,5 +15,5 @@ interface SerializesCastableAttributes
* @param array $attributes
* @return mixed
*/
public function serialize($model, string $key, $value, array $attributes);
public function serialize(Model $model, string $key, mixed $value, array $attributes);
}
@@ -34,6 +34,13 @@ class ModelIdentifier
*/
public $connection;
/**
* The class name of the model collection.
*
* @var string|null
*/
public $collectionClass;
/**
* Create a new model identifier.
*
@@ -50,4 +57,17 @@ class ModelIdentifier
$this->relations = $relations;
$this->connection = $connection;
}
/**
* Specify the collection class that should be used when serializing / restoring collections.
*
* @param string|null $collectionClass
* @return $this
*/
public function useCollectionClass(?string $collectionClass)
{
$this->collectionClass = $collectionClass;
return $this;
}
}
@@ -0,0 +1,7 @@
<?php
namespace Illuminate\Contracts\Database\Query;
interface ConditionExpression extends Expression
{
}
@@ -0,0 +1,16 @@
<?php
namespace Illuminate\Contracts\Database\Query;
use Illuminate\Database\Grammar;
interface Expression
{
/**
* Get the value of the expression.
*
* @param \Illuminate\Database\Grammar $grammar
* @return string|int|float
*/
public function getValue(Grammar $grammar);
}