Lines Matching refs:data
65 * @var mixed|null Custom (meta)data
67 protected $data;
294 * Adds custom data to the geometry
296 * @param string|array $property The name of the data or an associative array
297 * @param mixed|null $value The data. Can be any type (string, integer, array, etc.)
302 $this->data = $property;
304 $this->data[$property] = $value;
309 * Returns the requested data by property name, or all data of the geometry
311 * @param string|null $property The name of the data. If omitted, all data will be returned
312 * @return mixed|null The data or null if not exists
317 return $this->hasDataProperty($property) ? $this->data[$property] : null;
319 return $this->data;
324 * Tells whether the geometry has data with the specified name
326 * @return bool True if the geometry has data with the specified name
330 return array_key_exists($property, $this->data ?: []);