public function getValue($key = null) {
		if( empty($key) ) {
			return $this->data;
		}
		if( !array_key_exists($key, $this->data) ) {
			throw new FieldNotFoundException($key, static::getClass());
		}
		return $this->data[$key];
	}
public function getValue($key = null) {
		if( empty($key) ) {
			return $this->data;
		}
		if( !array_key_exists($key, $this->data) ) {
			throw new FieldNotFoundException($key, static::getClass());
		}
		return $this->data[$key];
	}
public function getValue ( $ key = null ) { if ( empty ( $ key ) ) { return $ this -> data ; } if ( ! array_key_exists ( $ key , $ this -> data ) ) { throw new FieldNotFoundException ( $ key , static :: getClass ( ) ) ; } return $ this -> data [ $ key ] ; }
Get one value or all values

@param string $key Name of the field to get.
@return mixed|array
@throws FieldNotFoundException

Get the value of field $key or all data values if $key is null.
Get one value or all values