<?php
/**
* This interface will define the way the user reads packages information from
* file system, database, or where ever she wants
* @author jgonzalez
*
*/
interface UML_Data_Source {
public function __construct($artifact_name);
public function setConfiguration(UML_Parser_Configuration &$configuration);
public function setArtifactName($artifact_name);
public function getArtifactName();
public function getSource($source = NULL);
}
abstract class UML_Data_Source_Abstract implements UML_Data_Source {
protected $artifact_name = NULL;
protected $configuration = NULL;
public function __construct($artifact_name) {
$this->setArtifactName($artifact_name);
}
public function setConfiguration(UML_Parser_Configuration &$configuration) {
$this->configuration = $configuration;
}
public function setArtifactName($artifact_name) {
return $this->artifact_name = $artifact_name;
}
public function getArtifactName() {
return $this->artifact_name;
}
}