lsolesen\pel\PelIfd::__construct PHP Метод

__construct() публичный Метод

The IFD will be empty, use the {@link addEntry()} method to add an {@link PelEntry}. Use the {@link setNext()} method to link this IFD to another.
public __construct ( $type )
    public function __construct($type)
    {
        if ($type != PelIfd::IFD0 && $type != PelIfd::IFD1 && $type != PelIfd::EXIF && $type != PelIfd::GPS && $type != PelIfd::INTEROPERABILITY) {
            throw new PelIfdException('Unknown IFD type: %d', $type);
        }
        $this->type = $type;
    }