src/CMDBObjectTypes.php
public function readOne($objectType) {
        $result = $this->api->request(
            'cmdb.object_types',
            [
                'filter' => [
                    'id' => $objectType
                ],
                'countobjects' => true
            ]
        );

        return end($result);
    }
public function readOne($objectType) {
        $result = $this->api->request(
            'cmdb.object_types',
            [
                'filter' => [
                    'id' => $objectType
                ],
                'countobjects' => true
            ]
        );

        return end($result);
    }
public function readOne ( $ objectType ) { $ result = $ this -> api -> request ( 'cmdb.object_types' , [ 'filter' => [ 'id' => $ objectType ] , 'countobjects' => true ] ) ; return end ( $ result ) ; }
Fetches information about an object type by its constant

@param string $objectType Object type constant

@return array Associative array

@throws Exception on error
Fetches information about an object type by its constant