# yaymail/4.4.0/src/Abstracts/BasePattern.php

YayMail – WooCommerce Email Customizer, version 4.4.0. 46 lines.

- Page: https://pluginprobe.com/plugins/yaymail/4.4.0/code/src/Abstracts/BasePattern.php
- Raw: https://pluginprobe.com/plugins/yaymail/4.4.0/raw/src/Abstracts/BasePattern.php
- Modified: 2026-04-23T12:18:08+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/yaymail/4.4.0/code/src/Abstracts/BasePattern.php#L10-L20`.

```php
<?php
namespace YayMail\Abstracts;

/**
 * BasePattern Class
 */
abstract class BasePattern {
    protected $id     = null;
    public const TYPE = '';

    protected $section = null;

    protected $available   = true;
    protected $position    = 10;
    protected $name        = '';
    protected $elements    = [];

    public function get_data() {
        return [
            'id'          => $this->id,
            'type'        => static::TYPE,
            'section'     => $this->section,
            'available'   => $this->available,
            'position'    => $this->position,
            'elements'    => $this->elements,
            'name'        => $this->name,
        ];
    }

    public function get_type() {
        return static::TYPE;
    }

    /**
     * @return string
     */
    public function get_section() {
        return $this->section;
    }

    public function get_raw_data() {
        return $this->get_data();
    }

}

```
