private function _errorConfig() {
        //error code config
        $error1 = (object) [
            'code' => 1,
            'resourceId' => false,
            'description' => 'Resource Not Found'
        ];

        $error2 = (object) [
            'code' => 2,
            'resourceId' => false,
            'description' => 'Circular Dependency Detected'
        ];

        $this->_errorCodes = [
            1 => $error1,
            2 => $error2
        ];
    }
private function _errorConfig() {
        //error code config
        $error1 = (object) [
            'code' => 1,
            'resourceId' => false,
            'description' => 'Resource Not Found'
        ];

        $error2 = (object) [
            'code' => 2,
            'resourceId' => false,
            'description' => 'Circular Dependency Detected'
        ];

        $this->_errorCodes = [
            1 => $error1,
            2 => $error2
        ];
    }
private function _errorConfig ( ) { //error code config $ error1 = ( object ) [ 'code' => 1 , 'resourceId' => false , 'description' => 'Resource Not Found' ] ; $ error2 = ( object ) [ 'code' => 2 , 'resourceId' => false , 'description' => 'Circular Dependency Detected' ] ; $ this -> _errorCodes = [ 1 => $ error1 , 2 => $ error2 ] ; }
This method is a helper method to set the default error config values.
This method is a helper method to set the default error config values .