/** * Overloads default class properties from the options. * * Any of the provider options can be set here: * * Type | Option | Description | Default Value * ----------|---------------|------------------------------------------------|----------------- * mixed | signature | Signature method name or object | provider default * * @param array provider options * @return void */ public function __construct(array $options = NULL) { if (isset($options['signature'])) { // Set the signature method name or object $this->signature = $options['signature']; } if (!is_object($this->signature)) { // Convert the signature name into an object $this->signature = Signature::forge($this->signature); } if (!$this->name) { // Attempt to guess the name from the class name $this->name = strtolower(substr(get_class($this), strlen('Provider_'))); } }