Skip to content

Commit

Permalink
Merge pull request #273 from ramonornela/master
Browse files Browse the repository at this point in the history
Added visibility in the methods Interfaces
  • Loading branch information
guilhermeblanco committed May 21, 2013
2 parents ce87784 + 5f50e26 commit 1459223
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 68 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/EventSubscriber.php
Expand Up @@ -41,5 +41,5 @@ interface EventSubscriber
*
* @return array
*/
function getSubscribedEvents();
public function getSubscribedEvents();
}
3 changes: 1 addition & 2 deletions lib/Doctrine/Common/NotifyPropertyChanged.php
Expand Up @@ -40,6 +40,5 @@ interface NotifyPropertyChanged
*
* @param PropertyChangedListener $listener
*/
function addPropertyChangedListener(PropertyChangedListener $listener);
public function addPropertyChangedListener(PropertyChangedListener $listener);
}

8 changes: 4 additions & 4 deletions lib/Doctrine/Common/Persistence/ConnectionRegistry.php
Expand Up @@ -36,7 +36,7 @@ interface ConnectionRegistry
*
* @return string The default connection name
*/
function getDefaultConnectionName();
public function getDefaultConnectionName();

/**
* Gets the named connection.
Expand All @@ -45,19 +45,19 @@ function getDefaultConnectionName();
*
* @return object
*/
function getConnection($name = null);
public function getConnection($name = null);

/**
* Gets an array of all registered connections
*
* @return array An array of Connection instances
*/
function getConnections();
public function getConnections();

/**
* Gets all connection names.
*
* @return array An array of connection names
*/
function getConnectionNames();
public function getConnectionNames();
}
16 changes: 8 additions & 8 deletions lib/Doctrine/Common/Persistence/ManagerRegistry.php
Expand Up @@ -36,7 +36,7 @@ interface ManagerRegistry extends ConnectionRegistry
*
* @return string The default object manager name
*/
function getDefaultManagerName();
public function getDefaultManagerName();

/**
* Gets a named object manager.
Expand All @@ -45,14 +45,14 @@ function getDefaultManagerName();
*
* @return \Doctrine\Common\Persistence\ObjectManager
*/
function getManager($name = null);
public function getManager($name = null);

/**
* Gets an array of all registered object managers
*
* @return \Doctrine\Common\Persistence\ObjectManager[] An array of ObjectManager instances
*/
function getManagers();
public function getManagers();

/**
* Resets a named object manager.
Expand All @@ -71,7 +71,7 @@ function getManagers();
*
* @return \Doctrine\Common\Persistence\ObjectManager
*/
function resetManager($name = null);
public function resetManager($name = null);

/**
* Resolves a registered namespace alias to the full namespace.
Expand All @@ -82,14 +82,14 @@ function resetManager($name = null);
*
* @return string The full namespace
*/
function getAliasNamespace($alias);
public function getAliasNamespace($alias);

/**
* Gets all connection names.
*
* @return array An array of connection names
*/
function getManagerNames();
public function getManagerNames();

/**
* Gets the ObjectRepository for an persistent object.
Expand All @@ -99,7 +99,7 @@ function getManagerNames();
*
* @return \Doctrine\Common\Persistence\ObjectRepository
*/
function getRepository($persistentObject, $persistentManagerName = null);
public function getRepository($persistentObject, $persistentManagerName = null);

/**
* Gets the object manager associated with a given class.
Expand All @@ -108,5 +108,5 @@ function getRepository($persistentObject, $persistentManagerName = null);
*
* @return \Doctrine\Common\Persistence\ObjectManager|null
*/
function getManagerForClass($class);
public function getManagerForClass($class);
}
32 changes: 16 additions & 16 deletions lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php
Expand Up @@ -35,7 +35,7 @@ interface ClassMetadata
*
* @return string
*/
function getName();
public function getName();

/**
* Gets the mapped identifier field name.
Expand All @@ -44,54 +44,54 @@ function getName();
*
* @return array
*/
function getIdentifier();
public function getIdentifier();

/**
* Gets the ReflectionClass instance for this mapped class.
*
* @return \ReflectionClass
*/
function getReflectionClass();
public function getReflectionClass();

/**
* Checks if the given field name is a mapped identifier for this class.
*
* @param string $fieldName
* @return boolean
*/
function isIdentifier($fieldName);
public function isIdentifier($fieldName);

/**
* Checks if the given field is a mapped property for this class.
*
* @param string $fieldName
* @return boolean
*/
function hasField($fieldName);
public function hasField($fieldName);

/**
* Checks if the given field is a mapped association for this class.
*
* @param string $fieldName
* @return boolean
*/
function hasAssociation($fieldName);
public function hasAssociation($fieldName);

/**
* Checks if the given field is a mapped single valued association for this class.
*
* @param string $fieldName
* @return boolean
*/
function isSingleValuedAssociation($fieldName);
public function isSingleValuedAssociation($fieldName);

/**
* Checks if the given field is a mapped collection valued association for this class.
*
* @param string $fieldName
* @return boolean
*/
function isCollectionValuedAssociation($fieldName);
public function isCollectionValuedAssociation($fieldName);

/**
* A numerically indexed list of field names of this persistent class.
Expand All @@ -100,14 +100,14 @@ function isCollectionValuedAssociation($fieldName);
*
* @return array
*/
function getFieldNames();
public function getFieldNames();

/**
* Returns an array of identifier field names numerically indexed.
*
* @return array
*/
function getIdentifierFieldNames();
public function getIdentifierFieldNames();

/**
* A numerically indexed list of association names of this persistent class.
Expand All @@ -116,7 +116,7 @@ function getIdentifierFieldNames();
*
* @return array
*/
function getAssociationNames();
public function getAssociationNames();

/**
* Returns a type name of this field.
Expand All @@ -127,31 +127,31 @@ function getAssociationNames();
* @param string $fieldName
* @return string
*/
function getTypeOfField($fieldName);
public function getTypeOfField($fieldName);

/**
* Returns the target class name of the given association.
*
* @param string $assocName
* @return string
*/
function getAssociationTargetClass($assocName);
public function getAssociationTargetClass($assocName);

/**
* Checks if the association is the inverse side of a bidirectional association
*
* @param string $assocName
* @return boolean
*/
function isAssociationInverseSide($assocName);
public function isAssociationInverseSide($assocName);

/**
* Returns the target field of the owning side of the association
*
* @param string $assocName
* @return string
*/
function getAssociationMappedByTargetField($assocName);
public function getAssociationMappedByTargetField($assocName);

/**
* Return the identifier of this object as an array with field name as key.
Expand All @@ -161,5 +161,5 @@ function getAssociationMappedByTargetField($assocName);
* @param object $object
* @return array
*/
function getIdentifierValues($object);
public function getIdentifierValues($object);
}
10 changes: 5 additions & 5 deletions lib/Doctrine/Common/Persistence/Mapping/ClassMetadataFactory.php
Expand Up @@ -36,31 +36,31 @@ interface ClassMetadataFactory
*
* @return array The ClassMetadata instances of all mapped classes.
*/
function getAllMetadata();
public function getAllMetadata();

/**
* Gets the class metadata descriptor for a class.
*
* @param string $className The name of the class.
* @return ClassMetadata
*/
function getMetadataFor($className);
public function getMetadataFor($className);

/**
* Checks whether the factory has the metadata for a class loaded already.
*
* @param string $className
* @return boolean TRUE if the metadata of the class in question is already loaded, FALSE otherwise.
*/
function hasMetadataFor($className);
public function hasMetadataFor($className);

/**
* Sets the metadata descriptor for a specific class.
*
* @param string $className
* @param ClassMetadata $class
*/
function setMetadataFor($className, $class);
public function setMetadataFor($className, $class);

/**
* Whether the class with the specified name should have its metadata loaded.
Expand All @@ -70,5 +70,5 @@ function setMetadataFor($className, $class);
* @param string $className
* @return boolean
*/
function isTransient($className);
public function isTransient($className);
}
10 changes: 5 additions & 5 deletions lib/Doctrine/Common/Persistence/Mapping/Driver/FileLocator.php
Expand Up @@ -36,15 +36,15 @@ interface FileLocator
* @param string $className
* @return string
*/
function findMappingFile($className);
public function findMappingFile($className);

/**
* Get all class names that are found with this file locator.
*
* @param string $globalBasename Passed to allow excluding the basename
* @return array
*/
function getAllClassNames($globalBasename);
public function getAllClassNames($globalBasename);

/**
* Check if a file can be found for this class name.
Expand All @@ -53,19 +53,19 @@ function getAllClassNames($globalBasename);
*
* @return bool
*/
function fileExists($className);
public function fileExists($className);

/**
* Get all the paths that this file locator looks for mapping files.
*
* @return array
*/
function getPaths();
public function getPaths();

/**
* Get the file extension that mapping files are suffixed with.
*
* @return string
*/
function getFileExtension();
public function getFileExtension();
}
Expand Up @@ -35,14 +35,14 @@ interface MappingDriver
* @param string $className
* @param ClassMetadata $metadata
*/
function loadMetadataForClass($className, ClassMetadata $metadata);
public function loadMetadataForClass($className, ClassMetadata $metadata);

/**
* Gets the names of all mapped classes known to this driver.
*
* @return array The names of all mapped classes known to this driver.
*/
function getAllClassNames();
public function getAllClassNames();

/**
* Whether the class with the specified name should have its metadata loaded.
Expand All @@ -52,5 +52,5 @@ function getAllClassNames();
* @param string $className
* @return boolean
*/
function isTransient($className);
public function isTransient($className);
}

0 comments on commit 1459223

Please sign in to comment.