Translations:Developers/Object oriented programming in PHP/Exceptions/2/ru

// [...] public function saveItems( MShop_Common_Item_Interface $item ) {   if( !( $item instanceof MShop_Product_Item_Interface ) ) { throw new MShop_Product_Exception( sprintf( 'Object is not of required type "%1$s"', $iface ) ); }   // [...] } // [...]