File "OrderLineCollection.php"
Full Path: /home/cananyalcin/public_html/core/lib/mollie/src/Resources/OrderLineCollection.php
File size: 607 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Mollie\Api\Resources;
class OrderLineCollection extends \Mollie\Api\Resources\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;
}
}