Files
kulakpos_web/vendor/mollie/mollie-api-php/src/Resources/OrderLineCollection.php

33 lines
587 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?php
namespace Mollie\Api\Resources;
class OrderLineCollection extends BaseCollection
{
/**
* @return string|null
*/
public function getCollectionResourceName()
{
return null;
}
/**
* Get a specific order line.
* Returns null if the order line cannot be found.
*
* @param string $lineId
* @return OrderLine|null
*/
public function get($lineId)
{
foreach ($this as $line) {
if ($line->id === $lineId) {
return $line;
}
}
return null;
}
}