ApiDoc BACKEND

Details extends Model

Modelo donde se valida y se carga la información de los detalles del material posterior a la optimización usado para generar un cutlist general (Perfiles).

Table of Contents

Properties

$component  : mixed
$endOffset  : mixed
$groups  : mixed
$kerf  : mixed
$length  : mixed
$profileQty  : mixed
$startOffset  : mixed
$uuid  : mixed

Methods

getCatMaterial()  : CatMaterialProfiles|null
Desc: Retorna el material activo
getMaterial()  : MaterialProfiles|null
Desc: Retorna el material por uuid
getMaterialInfo()  : array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, quantity: mixed, totalPrice: float, currency: string, type: string, dimensions: array{length: float}, unit: string, component: mixed}
Desc: Retorna la información del material en un array de datos.
rules()  : array<string|int, mixed>
Desc: Reglas de validación.

Properties

$profileQty

public mixed $profileQty

$startOffset

public mixed $startOffset

Methods

getCatMaterial()

Desc: Retorna el material activo

public getCatMaterial(mixed $id) : CatMaterialProfiles|null

Notes: n/a, Ref: n/a

Date: 2025-08-05, Version: v0.2507.01

Example: n/a

Parameters
$id : mixed
Return values
CatMaterialProfiles|null

getMaterial()

Desc: Retorna el material por uuid

public getMaterial(string $uuid) : MaterialProfiles|null

Notes: n/a, Ref: n/a

Date: 2025-08-05, Version: v0.2507.01

Example: n/a

Parameters
$uuid : string
Return values
MaterialProfiles|null

getMaterialInfo()

Desc: Retorna la información del material en un array de datos.

public getMaterialInfo() : array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, quantity: mixed, totalPrice: float, currency: string, type: string, dimensions: array{length: float}, unit: string, component: mixed}

Notes: n/a, Ref: n/a

Date: 2025-08-05, Version: v0.2507.01

Example: n/a

Return values
array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, quantity: mixed, totalPrice: float, currency: string, type: string, dimensions: array{length: float}, unit: string, component: mixed}

        
On this page

Search results