home
/
zktecojo
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Support
➕ New
📤 Upload
✎ Editing:
SerializableClosure.php
← Back
<?php namespace Illuminate\Support; use Jeremeamia\SuperClosure\SerializableClosure as SuperClosure; /** * Extends SuperClosure for backwards compatibility. */ class SerializableClosure extends SuperClosure { /** * The code for the closure * * @var string */ protected $code; /** * The variables that were "used" or imported from the parent scope * * @var array */ protected $variables; /** * Returns the code of the closure being serialized * * @return string */ public function getCode() { $this->determineCodeAndVariables(); return $this->code; } /** * Returns the "used" variables of the closure being serialized * * @return array */ public function getVariables() { $this->determineCodeAndVariables(); return $this->variables; } /** * Uses the serialize method directly to lazily fetch the code and variables if needed */ protected function determineCodeAndVariables() { if ( ! $this->code) { list($this->code, $this->variables) = unserialize($this->serialize()); } } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel