class Illuminate / Support / Optional

Optional

Implements

Uses

Properties

protected

$value mixed

The underlying object.

Default: null

Methods

public

__construct ( $value ) : void

Create a new optional instance.

Parameters

  • $value mixed
public

__get ( $key ) : mixed

Dynamically access a property on the underlying object.

Parameters

  • $key string
public

__isset ( $name ) : bool

Dynamically check a property exists on the underlying object.

Parameters

  • $name mixed
public

offsetExists ( $key ) : bool

Determine if an item exists at an offset.

Parameters

  • $key mixed
public

offsetGet ( $key ) : mixed

Get an item at a given offset.

Parameters

  • $key mixed
public

offsetSet ( $key , $value ) : void

Set the item at a given offset.

Parameters

  • $key mixed
  • $value mixed
public

offsetUnset ( $key ) : void

Unset the item at a given offset.

Parameters

  • $key string
public

__call ( $method , $parameters ) : mixed

Dynamically pass a method to the underlying object.

Parameters

  • $method string
  • $parameters array