# depicter/1.9.2/app/src/Document/CSS/Breakpoints.php

Depicter — Popup &amp; Slider Builder, version 1.9.2. 34 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.9.2/code/app/src/Document/CSS/Breakpoints.php
- Raw: https://pluginprobe.com/plugins/depicter/1.9.2/raw/app/src/Document/CSS/Breakpoints.php
- Modified: 2022-08-22T06:51:46+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.9.2/code/app/src/Document/CSS/Breakpoints.php#L10-L20`.

```php
<?php
namespace Depicter\Document\CSS;


class Breakpoints
{
	const DESKTOP = 'default';
	const TABLET  = 'tablet';
	const MOBILE  = 'mobile';

	const DESKTOP_SIZE = '';
	const TABLET_SIZE  = '1024';
	const MOBILE_SIZE  = '767';

	public static function names(){
		return array_keys( self::all() );
	}

	public static function all(){
		return [
			self::DESKTOP => self::DESKTOP_SIZE,
			self::TABLET  => self::TABLET_SIZE,
			self::MOBILE  => self::MOBILE_SIZE
		];
	}

	protected static function getSize( $breakpoint_name = 'default' ){
		if( isset( self::all()[ $breakpoint_name ] ) ){
			return self::all()[ $breakpoint_name ];
		}
		return '';
	}
}

```
