public function set($key, $value=null)
    {
        // Set the time that this token was saved for the first time
        $this->setAcquisitionTime();

        if (is_null($value) && is_array($key)) {
            // An array of attributes was passed in so save each one
            foreach($key as $attribute => $value){
                $this->setValue($attribute, $value);
            }
        } else {
            // Not an array so just set the attribute
            $this->setValue($key, $value);
        }
    }
public function set($key, $value=null)
    {
        // Set the time that this token was saved for the first time
        $this->setAcquisitionTime();

        if (is_null($value) && is_array($key)) {
            // An array of attributes was passed in so save each one
            foreach($key as $attribute => $value){
                $this->setValue($attribute, $value);
            }
        } else {
            // Not an array so just set the attribute
            $this->setValue($key, $value);
        }
    }
public function set ( $ key , $ value = null ) { // Set the time that this token was saved for the first time $ this -> setAcquisitionTime ( ) ; if ( is_null ( $ value ) && is_array ( $ key ) ) { // An array of attributes was passed in so save each one foreach ( $ key as $ attribute => $ value ) { $ this -> setValue ( $ attribute , $ value ) ; } } else { // Not an array so just set the attribute $ this -> setValue ( $ key , $ value ) ; } }
Set one or an array of attributes for the class
@param $key | single attribute name OR an array or attribute=>value pairs*
@param null $value for single attributes, the value of the attribute
Set one or an array of attributes for the class