Select Git revision
Company.php
-
Gundo Sifhufhi authoredGundo Sifhufhi authored
Company.php 424 B
<?php
namespace bobgo\Customshipping\Model\Carrier;
class Company
{
/**
* @return mixed|string
*/
public function getDestComp(): mixed
{
$data = json_decode(file_get_contents('php://input'), true);
if (isset($data['address']['company'])) {
$destComp = $data['address']['company'];
} else {
$destComp = '';
}
return $destComp;
}
}