File "States.php"
Full path: C:/Inetpub/vhosts/drshti.com/httpdocs/wp-content/plugins/depicter/app/src/Document/Models/Common/Measure/States.php
File
size: 630 B (630 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
namespace Depicter\Document\Models\Common\Measure;
use Depicter\Document\CSS\Breakpoints;
class States
{
/**
* @var Dimension
*/
public $default;
/**
* @var Dimension
*/
public $tablet;
/**
* @var Dimension
*/
public $mobile;
public function getStylesList( $properties = [] ){
$responsiveSizes = [];
foreach ( $properties as $property ) {
foreach ( Breakpoints::names() as $breakpoint ){
if ( !empty($this->{$breakpoint}->{$property}->value) ) {
$responsiveSizes[$breakpoint][$property] = (string) $this->{$breakpoint}->{$property};
}
}
}
return $responsiveSizes;
}
}