Skip to content
Snippets Groups Projects
Select Git revision
3 results Searching

uSubs.php

Blame
  • uSubs.php 417 B
    <?php
    
    namespace BobGroup\BobGo\Model\Carrier;
    
    /** Get AdditionalInfo information if available from the Estimate Shipping Methods Request Body */
    class uSubs
    {
    
        /**
         * @return mixed|string
         */
        public function getDestComp(): mixed
        {
            $data = json_decode(file_get_contents('php://input'), true);
            return isset($data['address']['company']) ? $data['address']['company'] : '';
        }
    }