1 | <?php |
||
13 | class Settings extends Model |
||
14 | { |
||
15 | const SETTINGS_CODE = 'ginopane_blogtaxonomy'; |
||
16 | |||
17 | const POST_TYPES_ENABLED_KEY = 'post_types_enabled'; |
||
18 | const POST_CATEGORIES_COVER_IMAGES_ENABLED_KEY = 'post_categories_cover_image_enabled'; |
||
19 | const POST_CATEGORIES_FEATURED_IMAGES_ENABLED_KEY = 'post_categories_featured_images_enabled'; |
||
20 | |||
21 | public $implement = [SettingsModel::class]; |
||
22 | |||
23 | public $settingsCode = self::SETTINGS_CODE; |
||
24 | |||
25 | public $settingsFields = 'fields.yaml'; |
||
26 | |||
27 | public function postTypesEnabled() : bool |
||
31 | |||
32 | public function postCategoriesCoverImageEnabled() : bool |
||
36 | |||
37 | public function postCategoriesFeaturedImagesEnabled() : bool |
||
41 | } |
||
42 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.