# yatra/3.0.9/app/Core/Service.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.9. 58 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.9/code/app/Core/Service.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.9/raw/app/Core/Service.php
- Modified: 2026-04-14T03:47:24+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/yatra/3.0.9/code/app/Core/Service.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Yatra\Core;

/**
 * Base Service Class
 * 
 * Abstract base class for all Yatra services
 * Provides common functionality and structure
 * 
 * @package Yatra\Core
 */
abstract class Service
{
    /**
     * Service constructor
     */
    public function __construct()
    {
        $this->init();
    }

    /**
     * Initialize the service
     * Override this method in child classes
     * 
     * @return void
     */
    protected function init(): void
    {
        // Override in child classes
    }

    /**
     * Get service name
     * Override this method in child classes
     * 
     * @return string
     */
    public function getName(): string
    {
        return static::class;
    }

    /**
     * Check if service is active
     * Override this method in child classes
     * 
     * @return bool
     */
    public function isActive(): bool
    {
        return true;
    }
}

```
