You are here

ContentHubQueueItemBase.php in Acquia Content Hub 8

File

src/QueueItem/ContentHubQueueItemBase.php
View source
<?php

namespace Drupal\acquia_contenthub\QueueItem;


/**
 * Base class for the Content Hub Queue Items.
 *
 * @package Drupal\acquia_contenthub\QueueItem
 */
abstract class ContentHubQueueItemBase implements ContentHubQueueItemInterface {

  /**
   * Get a property on the QueueItem.
   *
   * @param string $property
   *   The queue item property.
   *
   * @return bool|mixed
   *   The property value if exists, FALSE otherwise.
   */
  public function get($property) {
    return isset($this->{$property}) ? $this->{$property} : FALSE;
  }

}

Classes

Namesort descending Description
ContentHubQueueItemBase Base class for the Content Hub Queue Items.