protected function getId($id = null)
    {
        $id = (empty($id)) ? $this->resourceId : $id;
        if (empty($id)) {
            throw new \Exception('Invalid id supplied [' . $id . ']. Operation requires valid resource id.');
        }

        return $id;
    }
protected function getId($id = null)
    {
        $id = (empty($id)) ? $this->resourceId : $id;
        if (empty($id)) {
            throw new \Exception('Invalid id supplied [' . $id . ']. Operation requires valid resource id.');
        }

        return $id;
    }
protected function getId ( $ id = null ) { $ id = ( empty ( $ id ) ) ? $ this -> resourceId : $ id ; if ( empty ( $ id ) ) { throw new \ Exception ( 'Invalid id supplied [' . $ id . ']. Operation requires valid resource id.' ) ; } return $ id ; }
Determines the resource id to use.

@param string|null $id Resource id

@return string|null Resource id
@throws \Exception
Determines the resource id to use .