Menu

## Carbon extends Carbon
in package
Uses Dumpable, Conditionable

Carbon.php : 12

### Table of Contents

#### Methods

createFromId() : static
  Create a Carbon instance from a given ordered UUID or ULID.
dd() : never
  Dump the given arguments and terminate execution.
dump() : $this
  Dump the given arguments.
setTestNow() : void
  {@inheritdoc}
unless() : $this|TUnlessReturnType
  Apply the callback if the given "value" is (or resolves to) falsy.
when() : $this|TWhenReturnType
  Apply the callback if the given "value" is (or resolves to) truthy.

### Methods

#### createFromId()

Carbon.php : 27

Create a Carbon instance from a given ordered UUID or ULID.

`public static createFromId(Uuid|Ulid|string $id) : static`

##### Parameters

$id : Uuid|Ulid|string

##### Return values

static

#### dd()

Dumpable.php : 13

Dump the given arguments and terminate execution.

`public dd(mixed ...$args) : never`

##### Parameters

$args : mixed

##### Return values

never

#### dump()

Dumpable.php : 24

Dump the given arguments.

`public dump(mixed ...$args) : $this`

##### Parameters

$args : mixed

##### Return values

$this

#### setTestNow()

Carbon.php : 18

{@inheritdoc}

`public static setTestNow([mixed $testNow = null ]) : void`

##### Parameters

$testNow : mixed = null

#### unless()

Conditionable.php : 54

Apply the callback if the given "value" is (or resolves to) falsy.

`public unless([callable($this): TUnlessParameter|null $value = null ][, callable($this, TUnlessParameter): TUnlessReturnType|null $callback = null ][, callable($this, TUnlessParameter): TUnlessReturnType|null $default = null ]) : $this|TUnlessReturnType`

##### Parameters

$value : callable($this): TUnlessParameter|null = null
$callback : callable($this, TUnlessParameter): TUnlessReturnType|null = null
$default : callable($this, TUnlessParameter): TUnlessReturnType|null = null

##### Tags

template

  TUnlessParameter

template

  TUnlessReturnType

##### Return values

$this|TUnlessReturnType

#### when()

Conditionable.php : 22

Apply the callback if the given "value" is (or resolves to) truthy.

`public when([callable($this): TWhenParameter|null $value = null ][, callable($this, TWhenParameter): TWhenReturnType|null $callback = null ][, callable($this, TWhenParameter): TWhenReturnType|null $default = null ]) : $this|TWhenReturnType`

##### Parameters

$value : callable($this): TWhenParameter|null = null
$callback : callable($this, TWhenParameter): TWhenReturnType|null = null
$default : callable($this, TWhenParameter): TWhenReturnType|null = null

##### Tags

template

  TWhenParameter

template

  TWhenReturnType

##### Return values

$this|TWhenReturnType

## Search results