Scalr\Upgrade\EntityPropertiesIterator::__construct PHP 메소드

__construct() 공개 메소드

Constructor
public __construct ( AbstractEntity $entity )
$entity AbstractEntity An entity
    public function __construct(AbstractEntity $entity)
    {
        $this->position = 0;
        $this->entity = $entity;
        $this->refl = new ReflectionClass(get_class($entity));
        $this->refProps = $this->refl->getProperties(ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PUBLIC);
    }