You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
copenssl/src/OpenSSL/C/CBackedObjectWithOwner.php

32 lines
546 B
PHP

<?php
namespace Cijber\OpenSSL\C;
use FFI;
use FFI\CData;
class CBackedObjectWithOwner extends CBackedObject
{
protected FFI $ffi;
protected function __construct(FFI $ffi, CData $cObj)
{
parent::__construct($cObj);
$this->ffi = $ffi;
}
/**
* Cast an CData as
*
* @param FFI $ffi
* @param CData $cData
* @return static
* @internal
*/
public static function cast(FFI $ffi, CData $cData)
{
return new static($ffi, FFI::cast(static::TYPE, $cData));
}
}