Akuba icon

Untitled

Akuba | PRO | 04/20/16 08:19:11 PM UTC | 0 ⭐ | 234 👁️ | Never ⏰ | []
PHP |

920 B

|

None

|

0 👍

/

0 👎

<?php
 
 
class Person {
    private $name;
    private $age;
 
    public function __construct($name, $age)
    {
        $this->name = $name;
        $this->age = $age;
    }
 
    
    
 
 
    /**
     * Gets the value of name.
     *
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }
 
    /**
     * Sets the value of name.
     *
     * @param mixed $name the name
     *
     * @return self
     */
    private function _setName($name)
    {
        $this->name = $name;
 
        return $this;
    }
 
    /**
     * Gets the value of age.
     *
     * @return mixed
     */
    public function getAge()
    {
        return $this->age;
    }
 
    /**
     * Sets the value of age.
     *
     * @param mixed $age the age
     *
     * @return self
     */
    private function _setAge($age)
    {
        $this->age = $age;
 
        return $this;
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎