b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / vendor / vertex / sdk / src / Mapper / Api70 /
Filename/home/a/home/dev2.destoffenstraat.com/vendor/vertex/sdk/src/Mapper/Api70/LineItemMapper.php
Size2.16 kb
Permissionrw-rw-rw-
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified23-Sep-2020 09:46
Last accessed11-Aug-2025 04:26
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* @copyright Vertex. All rights reserved. https://www.vertexinc.com/
* @author Mediotype https://www.mediotype.com/
*/

namespace Vertex\Mapper\Api70;

use Vertex\Data\LineItemInterface;
use Vertex\Mapper\Api60\LineItemMapper as LineItemMapper60;
use Vertex\Mapper\LineItemMapperInterface;

/**
* API Level 70 implementation of {@see LineItemMapperInterface}
*/
class LineItemMapper implements LineItemMapperInterface
{
/** @var LineItemMapper60 */
private $parentMapper;

/**
* @param LineItemMapper60|null $parentMapper
*/
public function __construct(LineItemMapper60 $parentMapper = null)
{
$this->parentMapper = $parentMapper ?: new LineItemMapper60(
null,
new CustomerMapper(),
null,
null,
null,
new FlexibleNumericFieldMapper()
);
}

/**
* @inheritDoc
*/
public function build(\stdClass $map)
{
return $this->parentMapper->build($map);
}

/**
* @inheritDoc
*/
public function map(LineItemInterface $object)
{
return $this->parentMapper->map($object);
}

/**
* @inheritDoc
*/
public function getProductCodeMinLength()
{
return $this->parentMapper->getProductCodeMinLength();
}

/**
* @inheritDoc
*/
public function getProductCodeMaxLength()
{
return $this->parentMapper->getProductCodeMaxLength();
}

/**
* @inheritDoc
*/
public function validateProductCode($fieldValue)
{
return $this->parentMapper->validateProductCode($fieldValue);
}

/**
* @inheritDoc
*/
public function getProductTaxClassNameMaxLength()
{
return $this->parentMapper->getProductTaxClassNameMaxLength();
}

/**
* @inheritDoc
*/
public function getProductTaxClassNameMinLength()
{
return $this->parentMapper->getProductTaxClassNameMinLength();
}

/**
* @inheritDoc
*/
public function validateProductTaxClassName($fieldValue)
{
return $this->parentMapper->validateProductTaxClassName($fieldValue);
}
}