src/CMDBObject.php
public function readAll($objectID) {
        $objects = (new CMDBObjects($this->api))
            ->read(['ids' => [$objectID]], null, null, null, null, true);

        switch (count($objects)) {
            case 0:
                throw new RuntimeException(sprintf(
                    'Object not found by identifier %s',
                    $objectID
                ));
            case 1:
                return end($objects);
            default:
                throw new RuntimeException(sprintf(
                    'Found multiple objects by identifier %s',
                    $objectID
                ));
        }
    }
public function readAll($objectID) {
        $objects = (new CMDBObjects($this->api))
            ->read(['ids' => [$objectID]], null, null, null, null, true);

        switch (count($objects)) {
            case 0:
                throw new RuntimeException(sprintf(
                    'Object not found by identifier %s',
                    $objectID
                ));
            case 1:
                return end($objects);
            default:
                throw new RuntimeException(sprintf(
                    'Found multiple objects by identifier %s',
                    $objectID
                ));
        }
    }
public function readAll ( $ objectID ) { $ objects = ( new CMDBObjects ( $ this -> api ) ) -> read ( [ 'ids' => [ $ objectID ] ] , null , null , null , null , true ) ; switch ( count ( $ objects ) ) { case 0 : throw new RuntimeException ( sprintf ( 'Object not found by identifier %s' , $ objectID ) ) ; case 1 : return end ( $ objects ) ; default : throw new RuntimeException ( sprintf ( 'Found multiple objects by identifier %s' , $ objectID ) ) ; } }
Read all information about object including category entries

@param int $objectID Object identifier

@return array Multi-dimensional array

@throws Exception on error
Read all information about object including category entries