WordPress at a glance
class is not described

Automattic\WooCommerce\Vendor\League\Container\ServiceProvider

AbstractServiceProvider{} WC 1.0

No Hooks.

Return

Null. Nothing.

Usage

$AbstractServiceProvider = new AbstractServiceProvider();
// use class methods

Methods

  1. ERROR: no method name found on line ``
  2. ERROR: no method name found on line ` }`
  3. getIdentifier()
  4. ERROR: no method name found on line ``
  5. provides(string $alias)
  6. ERROR: no method name found on line ``
  7. setIdentifier(string $id)
  8. ERROR: no method name found on line ``
  9. ERROR: no method name found on line ``

Code of AbstractServiceProvider{} WC 5.0.0

<?php
abstract class AbstractServiceProvider implements ServiceProviderInterface
{
    use ContainerAwareTrait;

    /**
     * @var array
     */
    protected $provides = [];

    /**
     * @var string
     */
    protected $identifier;

    /**
     * {@inheritdoc}
     */
    public function provides(string $alias) : bool
    {
        return in_array($alias, $this->provides, true);
    }

    /**
     * {@inheritdoc}
     */
    public function setIdentifier(string $id) : ServiceProviderInterface
    {
        $this->identifier = $id;

        return $this;
    }

    /**
     * {@inheritdoc}
     */
    public function getIdentifier() : string
    {
        return $this->identifier ?? get_class($this);
    }
}