<?php

/**
 * The definition for the contact_email class.
 *
 * @package CGContacts
 * @category Productivity
 * @author  calguy1000 <calguy1000@cmsmadesimple.org>
 * @copyright Copyright 2014 by Robert Campbell
 */

namespace CGContacts;

/**
 * A class to represnt an email object within a contact.
 */
class contact_email extends contact_simple_value
{
    /**
     * Get the address associated with the object.
     * This is an alias for the get_value() method.
     *
     * @return string
     */
    public function get_address()
    {
        return $this->get_value();
    }

    /**
     * Set the address associated with the object.
     * This is an alias for the set_value() method.
     *
     * @param string $val
     */
    public function set_address($val)
    {
        $this->set_value($val);
    }

} // end of class

?>
