public function add($element) {
        $currentValue = $this->getRawValue();

        if (!in_array($element, $currentValue)) {
            $currentValue[] = $element;
            $this->setRawValue($currentValue);
        }

        return $this;
    }
public function add($element) {
        $currentValue = $this->getRawValue();

        if (!in_array($element, $currentValue)) {
            $currentValue[] = $element;
            $this->setRawValue($currentValue);
        }

        return $this;
    }
public function add ( $ element ) { $ currentValue = $ this -> getRawValue ( ) ; if ( ! in_array ( $ element , $ currentValue ) ) { $ currentValue [ ] = $ element ; $ this -> setRawValue ( $ currentValue ) ; } return $ this ; }
Add a new value to the list.

@param $element

@return $this
Add a new value to the list .