You are here

DefaultValueCollection.php in Crumbs, the Breadcrumbs suite 7.2

File

lib/InjectedAPI/Collection/DefaultValueCollection.php
View source
<?php

class crumbs_InjectedAPI_Collection_DefaultValueCollection {

  /**
   * Default weights for some plugin keys.
   *
   * @var mixed[]
   *   Format: $[$key] = $weight|false
   */
  protected $defaultValues = array();

  /**
   * @return mixed[]
   *   Format: $[$key] = false|$weight
   * @throws Exception
   */
  function getDefaultValues() {
    return $this->defaultValues;
  }

  /**
   * @param string $key
   * @param int|false $value
   */
  function setDefaultValue($key, $value) {
    $this->defaultValues[$key] = $value;
  }

}