![]() 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/old/vendor/rector/rector/vendor/illuminate/contracts/Database/ |
<?php namespace RectorPrefix202308\Illuminate\Contracts\Database; class ModelIdentifier { /** * The class name of the model. * * @var string */ public $class; /** * The unique identifier of the model. * * This may be either a single ID or an array of IDs. * * @var mixed */ public $id; /** * The relationships loaded on the model. * * @var array */ public $relations; /** * The connection name of the model. * * @var string|null */ public $connection; /** * The class name of the model collection. * * @var string|null */ public $collectionClass; /** * Create a new model identifier. * * @param string $class * @param mixed $id * @param array $relations * @param mixed $connection * @return void */ public function __construct($class, $id, array $relations, $connection) { $this->id = $id; $this->class = $class; $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; } }