Ejemplo n.º 1
0
 /**
  * Ref constructor.
  *
  * @param \Codex\Codex            $codex
  * @param \Codex\Projects\Project $project
  * @param \Codex\Projects\Refs    $refs
  * @param           string        $name
  */
 public function __construct(Codex $codex, Project $project, Refs $refs, $name)
 {
     $this->setCodex($codex);
     $this->setFiles($project->getFiles());
     $this->name = $name;
     $this->project = $project;
     $this->refs = $refs;
     $this->path = $project->path($name);
     $this->hookPoint('refs:construct', [$this]);
     $this->resolve();
     $this->hookPoint('refs:constructed', [$this]);
 }