Overview

Namespaces

  • Composer
    • Autoload
  • Illuminate
    • Support
      • Contracts
      • Facades
  • Laravella
    • Crud
      • Exceptions
      • Facades
  • None
  • PHP

Classes

  • ClassLoader
  • Collection
  • Fluent
  • Manager
  • MessageBag
  • NamespacedItemResolver
  • Pluralizer
  • SerializableClosure
  • ServiceProvider
  • Str
  • Overview
  • Namespace
  • Class
  • Tree

Class SerializableClosure

Do not use this class unless you really know what you're doing!

Illuminate\Support\SerializableClosure implements Serializable
Namespace: Illuminate\Support
Author: Taylor Otwell <@taylorotwell>
Author: Jeremy Lindblom <@jeremeamia>
Located at vendor/illuminate/support/Illuminate/Support/SerializableClosure.php
Methods summary
public
# __construct( Closure $closure )

Create a new serializable Closure instance.

Create a new serializable Closure instance.

Parameters

$closure
Closure
$closure
public string
# getCode( )

Get the code for the Closure.

Get the code for the Closure.

Returns

string
protected string
# getCodeFromFile( )

Extract the code from the Closure's file.

Extract the code from the Closure's file.

Returns

string
protected SplFileObject
# getFile( )

Get an SplObjectFile object at the starting line of the Closure.

Get an SplObjectFile object at the starting line of the Closure.

Returns

SplFileObject
public array
# getVariables( )

Get the variables used by the Closure.

Get the variables used by the Closure.

Returns

array
protected array
# getUseClauseVariables( )

Get the variables from the "use" clause.

Get the variables from the "use" clause.

Returns

array
protected integer
# getUseIndex( )

Get the index location of the "use" clause.

Get the index location of the "use" clause.

Returns

integer
public string
# serialize( )

Serialize the Closure instance.

Serialize the Closure instance.

Returns

string

Implementation of

Serializable::serialize()
public
# unserialize( string $serialized )

Unserialize the Closure instance.

Unserialize the Closure instance.

Parameters

$serialized
string
$serialized

Implementation of

Serializable::unserialize()
public Closure
# getClosure( )

Get the unserialized Closure instance.

Get the unserialized Closure instance.

Returns

Closure
public mixed
# __invoke( )

Invoke the contained Closure.

Invoke the contained Closure.

Returns

mixed
Properties summary
protected Closure $closure
#

The Closure instance.

The Closure instance.

protected ReflectionFunction $reflection
#

The ReflectionFunction instance of the Closure.

The ReflectionFunction instance of the Closure.

protected string $code
#

The code contained by the Closure.

The code contained by the Closure.

crud API documentation generated by ApiGen 2.8.0