lazy loading php
<p>I have to do the task via lazy loading<br>
a) Define class called Human<br>
b) Define class called Properties<br>
c) Define private property called $properties of Human that will be instance of Properties<br>
d) Create custom setter and getter in Properties class<br>
e) Create instance of the Human class and display several sample properties of a human e.g age, hair color, eyes color.</p>

<p>What about now for class Human is it okay?</p>

<pre>

    class Properties
    {
        private $age;
        private $hairColor;
        private $eyesColor;

         public function setAge($age)
         { 
             return $this->age = $age; 
         }        

         public function getAge()
         { 
             return $this->age; 
         } 

         /* set and get method for hairColor */
          public function setHairColor($hairColor)
         { 
             return $this->hairColor = $hairColor; 
         }        

         public function getHairColor()
         { 
             return $this->hairColor; 
         } 

          /* set and get method for eyesColor */
           public function setEyesColor($eyesColor)
         { 
             return $this->hairColor = $eyesColor; 
         }        

         public function getEyesColor()
         { 
             return $this->eyesColor; 
         } 
    }


class Human
{
    private $properties;
    public function __construct(Properties $properties)
    {   
        $this->properties = $properties;
    }        
    public function getProperties()
    {
      return $this->properties;
    }
}



</pre>
