mirror of
https://github.com/Karaka-Management/oms-Shop.git
synced 2026-01-11 02:28:40 +00:00
update
This commit is contained in:
parent
bd291f26aa
commit
ccb2f80638
|
|
@ -47,7 +47,7 @@ final class AppController extends ModuleAbstract
|
|||
protected static array $dependencies = [];
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -67,7 +67,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -87,7 +87,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -107,7 +107,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -127,7 +127,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -147,7 +147,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
@ -167,7 +167,7 @@ final class AppController extends ModuleAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Routing end-point for application behaviour.
|
||||
* Routing end-point for application behavior.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ final class ApiController extends Controller
|
|||
if (!empty($attr = $item->getAttribute('brand')->value->getValue())) {
|
||||
$schema['brand'] = [
|
||||
'@type' => 'Brand',
|
||||
'name' => $attr
|
||||
'name' => $attr,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ final class ApiController extends Controller
|
|||
|
||||
if (!empty($attr = $item->getAttribute('country_of_origin')->value->getValue())) {
|
||||
$schema['countryOfOrigin'] = [
|
||||
'@type' => 'Country',
|
||||
'@type' => 'Country',
|
||||
'identifier' => $attr,
|
||||
];
|
||||
}
|
||||
|
|
@ -241,14 +241,14 @@ final class ApiController extends Controller
|
|||
|
||||
if (!empty($attr = $item->getAttribute('manufacturer')->value->getValue())) {
|
||||
$schema['manufacturer'] = [
|
||||
'@type' => 'Organization',
|
||||
'@type' => 'Organization',
|
||||
'legalName' => $attr,
|
||||
];
|
||||
}
|
||||
|
||||
if (!empty($attr = $item->getAttribute('variantof')->value->getValue())) {
|
||||
$schema['isVariantOf'] = [
|
||||
'@type' => 'ProductGroup',
|
||||
'@type' => 'ProductGroup',
|
||||
'productGroupID' => $attr,
|
||||
];
|
||||
}
|
||||
|
|
@ -259,7 +259,7 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
$schema['isAccessoryOrSparePartFor'][] = [
|
||||
'@type' => 'Product',
|
||||
'@type' => 'Product',
|
||||
'identifier' => $attr,
|
||||
];
|
||||
}
|
||||
|
|
@ -270,14 +270,14 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
$schema['isAccessoryOrSparePartFor'][] = [
|
||||
'@type' => 'Product',
|
||||
'@type' => 'Product',
|
||||
'identifier' => $attr,
|
||||
];
|
||||
}
|
||||
|
||||
if (!empty($attr = $item->getAttribute('consumablefor')->value->getValue())) {
|
||||
$schema['isConsumableFor'] = [
|
||||
'@type' => 'Product',
|
||||
'@type' => 'Product',
|
||||
'identifier' => $attr,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Modules\Shop\Models;
|
|||
use phpOMS\Stdlib\Base\Enum;
|
||||
|
||||
/**
|
||||
* Permision state enum.
|
||||
* Permission category enum.
|
||||
*
|
||||
* @package Modules\Shop\Models
|
||||
* @license OMS License 2.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user