25 lines
326 B
PHP
25 lines
326 B
PHP
<?php
|
|
|
|
class StaticCatalogManager extends CatalogManager {
|
|
|
|
private $catalog;
|
|
|
|
|
|
public function __construct(array $copy) {
|
|
|
|
$this->catalog = $copy;
|
|
|
|
}
|
|
|
|
protected function retrieveCatalog($index){
|
|
|
|
if(array_key_exists($index,$this->catalog))
|
|
return $this->catalog[$index];
|
|
else
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|