src/snac/data/AbstractData.php
/**
     * Add a date object to our list of dates. Succeeds only if the object allows dates, or has room based on
     * maxDateCount
     *
     * @param \snac\data\SNACDate A single SNACDate that will be added to our list of dates.
     * @return boolean true on success, false on failure
     *
     */
Add a date object to our list of dates. Succeeds only if the object allows dates, or has room based on
maxDateCount

@param \snac\data\SNACDate A single SNACDate that will be added to our list of dates.
@return boolean true on success, false on failure
Add a date object to our list of dates . Succeeds only if the object allows dates or has room based on maxDateCount @param \ snac \ data \ SNACDate A single SNACDate that will be added to our list of dates . @return boolean true on success false on failure
public function addDate($dateObj)
    {
        if ($this->maxDateCount != 0 &&
                (count($this->dateList) < $this->maxDateCount)) {
            array_push($this->dateList, $dateObj);
            return true;
        }
        return false;
    }
public function addDate ( $ dateObj ) { if ( $ this -> maxDateCount != 0 && ( count ( $ this -> dateList ) < $ this -> maxDateCount ) ) { array_push ( $ this -> dateList , $ dateObj ) ; return true ; } return false ; }
Add a date object to our list of dates.
Add a date object to our list of dates .