_map; } /** * Setup for building a make. Makes a new * Pd_Map and then runs the builders _setup method */ public function setup() { $this->_map = new Pd_Map(); $this->_setup(); } /** * Builds the map by running the setup method and * then running the builers _build method. * */ public function build() { $this->setup(); $this->_build(); } /** * Creates a Map Item based off options array * * @param array $options * @return Pd_Map_Item */ protected function _makeItemFromOptions($options) { $defaults = array( 'dependencyName' => null, 'injectWith' => null, 'injectAs' => null, 'force' => false, 'newClass' => null, ); $options = array_merge($defaults, $options); $item = new Pd_Map_Item(); $item->setDependencyName($options['dependencyName']); $item->setInjectWith($options['injectWith']); $item->setInjectAs($options['injectAs']); $item->setForce($options['force']); $item->setNewClass($options['newClass']); return $item; } }