class Shape extends Model

A shape, e.g. point or circle.

Traits

Some models have fixed, "constant" instances. An example is the Role model, which may have e.g. the roles "admin" and "user". These are always the same and do not change.

HasFactory

Constants

INSTANCES

The constant instances of this model.

Properties

bool $timestamps

Don't maintain timestamps for this model.

Methods

static mixed
__callStatic(string $key, mixed $arguments)

Get one of the instances of this model that are defined in the INSTANCES constant array.

static Shape
point()

No description

static int
pointId()

No description

static Shape
line()

No description

static int
lineId()

No description

static Shape
polygon()

No description

static int
polygonId()

No description

static Shape
circle()

No description

static int
circleId()

No description

static Shape
rectangle()

No description

static int
rectangleId()

No description

static Shape
ellipse()

No description

static int
ellipseId()

No description

static Shape
wholeFrame()

No description

static int
wholeFrameId()

No description

Details

static mixed __callStatic(string $key, mixed $arguments)

Get one of the instances of this model that are defined in the INSTANCES constant array.

Parameters

string $key

Can be he instance name like "myName" or to get the instance ID "myNameId".

mixed $arguments

Return Value

mixed

at line 27
static Shape point()

No description

Return Value

Shape

at line 27
static int pointId()

No description

Return Value

int

at line 27
static Shape line()

No description

Return Value

Shape

at line 27
static int lineId()

No description

Return Value

int

at line 27
static Shape polygon()

No description

Return Value

Shape

at line 27
static int polygonId()

No description

Return Value

int

at line 27
static Shape circle()

No description

Return Value

Shape

at line 27
static int circleId()

No description

Return Value

int

at line 27
static Shape rectangle()

No description

Return Value

Shape

at line 27
static int rectangleId()

No description

Return Value

int

at line 27
static Shape ellipse()

No description

Return Value

Shape

at line 27
static int ellipseId()

No description

Return Value

int

at line 27
static Shape wholeFrame()

No description

Return Value

Shape

at line 27
static int wholeFrameId()

No description

Return Value

int