Espinoza Guillermo 7 роки тому
батько
коміт
2f53ab16cd
2 змінених файлів з 36 додано та 18 видалено
  1. 0 14
      src/KeaBundle/Admin/Lease4Admin.php
  2. 36 4
      src/KeaBundle/Entity/Lease4.php

+ 0 - 14
src/KeaBundle/Admin/Lease4Admin.php

@@ -66,20 +66,6 @@ class Lease4Admin extends BaseAdmin
         ;
     }
 
-    /**
-     * @param FormMapper $formMapper
-     */
-    protected function configureFormFields(FormMapper $formMapper)
-    {
-        $formMapper
-            ->add('address')
-            ->add('hwaddr')
-            ->add('client_id')
-            ->add('valid_lifetime')
-            ->add('expire')
-        ;
-    }
-
     /**
      * @param ShowMapper $showMapper
      */

+ 36 - 4
src/KeaBundle/Entity/Lease4.php

@@ -64,48 +64,80 @@ class Lease4
     {
         return long2ip($this->address);
     }
-        
+    
+    /**
+     * @return string
+     */    
     public function getHwaddr()
     {
         return bin2hex($this->hwaddr);
     }
     
+    /**
+     * @param string $hwaddr
+     *
+     * @return Lease4
+     */
     public function setHwaddr($hwaddr)
     {
         $this->hwaddr = $hwaddr;
         
         return $this;
     }
-        
+    
+    /**
+     * @return string
+     */     
     public function getClientId()
     {
         return bin2hex($this->client_id);
     }
     
+    /**
+     * @param string $client_id
+     *
+     * @return Lease4
+     */
     public function setClientId($client_id)
     {
         $this->client_id = $client_id;
         
         return $this;
     }
-        
+    
+    /**
+     * @return int
+     */    
     public function getValidLifetime()
     {
         return $this->valid_lifetime;
     }
     
+    /**
+     * @param int $valid_lifetime
+     *
+     * @return Lease4
+     */
     public function setValidLifetime($valid_lifetime)
     {
         $this->valid_lifetime = $valid_lifetime;
         
         return $this;
     }
-        
+    
+    /**
+     * @return DateTime
+     */     
     public function getExpire()
     {
         return $this->expire;
     }
     
+    /**
+     * @param DateTime $expire
+     *
+     * @return Lease4
+     */
     public function setExpire($expire)
     {
         $this->expire = $expire;