# depicter/1.3.2/app/src/Document/Models/Common/Styles/Svg.php

Depicter — Popup &amp; Slider Builder, version 1.3.2. 29 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.3.2/code/app/src/Document/Models/Common/Styles/Svg.php
- Raw: https://pluginprobe.com/plugins/depicter/1.3.2/raw/app/src/Document/Models/Common/Styles/Svg.php
- Modified: 2022-06-01T06:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.3.2/code/app/src/Document/Models/Common/Styles/Svg.php#L10-L20`.

```php
<?php
namespace Depicter\Document\Models\Common\Styles;


use Depicter\Document\CSS\Breakpoints;

class Svg extends States
{

	public function set( $css ) {
		$devices = Breakpoints::names();
		foreach ( $devices as $device ) {
			if ( !empty( $this->{$device}->fill ) ) {
				$css[ $device ][ 'fill' ] = $this->{$device}->fill;
			}

			if ( !empty( $this->{$device}->stroke ) ) {
				$css[ $device ][ 'stroke' ] = $this->{$device}->stroke;
			}

			if ( !empty( $this->{$device}->strokeWidth ) ) {
				$css[ $device ][ 'stroke-width' ] = $this->{$device}->strokeWidth->value . $this->{$device}->strokeWidth->unit;
			}
		}

		return $css;
	}
}

```
