Browse Source

PHPDoc fixes

Added new and removed some unused @return's in AdminInterface.
StudioMaX 9 năm trước cách đây
mục cha
commit
4d716ecf7a
1 tập tin đã thay đổi với 5 bổ sung20 xóa
  1. 5 20
      Admin/AdminInterface.php

+ 5 - 20
Admin/AdminInterface.php

@@ -413,11 +413,16 @@ interface AdminInterface
 
     /**
      * @param mixed $entity
+     *
+     * @return string a string representation of the id that is save to use in an url
      */
     public function getUrlsafeIdentifier($entity);
 
     /**
      * @param mixed $entity
+     *
+     * @return string a string representation of the identifiers for this
+     *                instance
      */
     public function getNormalizedIdentifier($entity);
 
@@ -562,8 +567,6 @@ interface AdminInterface
 
     /**
      * @param string $uniqId
-     *
-     * @return mixed
      */
     public function setUniqid($uniqId);
 
@@ -583,8 +586,6 @@ interface AdminInterface
 
     /**
      * @param object $subject
-     *
-     * @return mixed
      */
     public function setSubject($subject);
 
@@ -652,58 +653,42 @@ interface AdminInterface
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function delete($object);
 
 //TODO: uncomment this method for 3.0
 //    /**
 //     * @param mixed $object
-//     *
-//     * @return mixed
 //     */
 //    public function preValidate($object);
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function preUpdate($object);
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function postUpdate($object);
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function prePersist($object);
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function postPersist($object);
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function preRemove($object);
 
     /**
      * @param mixed $object
-     *
-     * @return mixed
      */
     public function postRemove($object);