Skip to content
Snippets Groups Projects
Select Git revision
  • e617d532a516a77e34521fb7278b4eedcc220c3b
  • dev default protected
  • prod protected
  • 1.0.58
  • 1.0.57
  • 1.0.52
  • 1.0.56
  • 1.0.51
  • 1.0.50
  • 1.0.33
  • 1.0.32
  • 1.0.31
  • 1.0.30
  • 1.0.29
  • 1.0.28
  • 1.0.27
  • 1.0.26
  • 1.0.25
  • 1.0.24
  • 1.0.23
  • 1.0.22
  • 1.0.21
  • 1.0.20
23 results

Company.php

Blame
  • Company.php 499 B
    <?php
    
    namespace bobgo\CustomShipping\Model\Carrier;
    
    /**
     * Get the Company information from the request body and return it
     */
    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;
        }
    }