# depicter/trunk/app/src/Document/Models/Common/Styles/States.php

Depicter — Popup &amp; Slider Builder, version trunk. 45 lines.

- Page: https://pluginprobe.com/plugins/depicter/trunk/code/app/src/Document/Models/Common/Styles/States.php
- Raw: https://pluginprobe.com/plugins/depicter/trunk/raw/app/src/Document/Models/Common/Styles/States.php
- Modified: 2024-01-29T10:15:28+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/trunk/code/app/src/Document/Models/Common/Styles/States.php#L10-L20`.

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


class States
{
	/**
	 * @var Base
	 */
	public $default;

	/**
	 * @var Base
	 */
	public $tablet;

	/**
	 * @var Base
	 */
	public $mobile;


	/**
	 * Checks whether properties for a breakpoint are available and breakpoint is enabled or not
	 *
	 * @param $device
	 *
	 * @return bool
	 */
	public function isBreakpointEnabled( $device = 'default' ) {
		return isset( $this->{$device}->enable ) ? !empty( $this->{$device}->enable ) : !empty( $this->{$device} ) ;
	}

	/**
	 * Checks whether a breakpoint is disabled or not
	 *
	 * @param $device
	 *
	 * @return bool
	 */
	public function isBreakpointDisabled( $device = 'default' ) {
		return isset( $this->{$device}->enable ) && ( $this->{$device}->enable === false );
	}
}

```
