# templately/3.2.7/includes/Utils/Plan.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 3.2.7. 22 lines.

- Page: https://pluginprobe.com/plugins/templately/3.2.7/code/includes/Utils/Plan.php
- Raw: https://pluginprobe.com/plugins/templately/3.2.7/raw/includes/Utils/Plan.php
- Modified: 2022-12-12T05:31:54+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/templately/3.2.7/code/includes/Utils/Plan.php#L10-L20`.

```php
<?php

namespace Templately\Utils;

class Plan extends Base {
    const ALL     = 1;
    const STARTER = 2;
    const PRO     = 3;

	/**
	 * Get the plan ID.
	 *
	 * @since 2.0.0
	 * @param string $plan
	 *
	 * @return int
	 */
    public static function get( $plan = 'all' ) {
        $plan = strtoupper( $plan );
        return $plan === 'STARTER' ? self::STARTER : ( $plan === 'PRO' ? self::PRO : self::ALL );
    }
}
```
