<?php namespace Metadata; /** * Represents the metadata for the entire class hierarchy. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ class ClassHierarchyMetadata { public $classMetadata = array(); public function addClassMetadata(ClassMetadata $metadata) { $this->classMetadata[$metadata->name] = $metadata; } public function getRootClassMetadata() { return reset($this->classMetadata); } public function getOutsideClassMetadata() { return end($this->classMetadata); } public function isFresh($timestamp) { foreach ($this->classMetadata as $metadata) { if (!$metadata->isFresh($timestamp)) { return false; } } return true; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Cache | Folder | 0755 |
|
|
Driver | Folder | 0755 |
|
|
AdvancedMetadataFactoryInterface.php | File | 464 B | 0644 |
|
ClassHierarchyMetadata.php | File | 791 B | 0644 |
|
ClassMetadata.php | File | 1.86 KB | 0644 |
|
MergeableClassMetadata.php | File | 837 B | 0644 |
|
MergeableInterface.php | File | 200 B | 0644 |
|
MetadataFactory.php | File | 5.71 KB | 0644 |
|
MetadataFactoryInterface.php | File | 723 B | 0644 |
|
MethodMetadata.php | File | 1.12 KB | 0644 |
|
NullMetadata.php | File | 198 B | 0644 |
|
PropertyMetadata.php | File | 1.28 KB | 0644 |
|
Version.php | File | 83 B | 0644 |
|