Menu

## Mutability

Mutability.php : 24

Trait Mutability.

Utils to know if the current object is mutable or immutable and convert it.

### Table of Contents

#### Methods

isImmutable() : bool
  Returns true if the current class/instance is immutable.
isMutable() : bool
  Returns true if the current class/instance is mutable.
toImmutable() : CarbonImmutable
  Return a immutable copy of the instance.
toMutable() : Carbon
  Return a mutable copy of the instance.

### Methods

#### isImmutable()

Mutability.php : 39

Returns true if the current class/instance is immutable.

`public static isImmutable() : bool`

##### Return values

bool

#### isMutable()

Mutability.php : 31

Returns true if the current class/instance is mutable.

`public static isMutable() : bool`

##### Return values

bool

#### toImmutable()

Mutability.php : 62

Return a immutable copy of the instance.

`public toImmutable() : CarbonImmutable`

##### Return values

CarbonImmutable

#### toMutable()

Mutability.php : 49

Return a mutable copy of the instance.

`public toMutable() : Carbon`

##### Return values

Carbon

## Search results