<?php/** * The code metadata driver loads the metadata of the classes through invoking * a static callback method that needs to be implemented when using this driver. * * @author Roman Borschel <roman@code-factory.org> */classDoctrine_ClassMetadata_CodeDriver{/** * Loads the metadata for the specified class into the provided container. */publicfunctionloadMetadataForClass($className,Doctrine_ClassMetadata$metadata){
if(!method_exists($className,'initMetadata')){thrownewDoctrine_ClassMetadata_Exception("Unable to load metadata for class"." '$className'. Callback method 'initMetadata' not found.");}