PHP code example of dreikern / phpstan-oxid

1. Go to this page and download the library: Download dreikern/phpstan-oxid library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dreikern / phpstan-oxid example snippets


oxNew(\OxidEsales\EshopCommunity\Application\Model\Voucher::class);

oxNew(\OxidEsales\Eshop\Application\Model\Voucher::class);

oxNew('oxdiscount');

oxNew(\OxidEsales\Eshop\Application\Model\Discount::class);

Registry::get(\OxidEsales\EshopCommunity\Application\Model\Voucher::class);

Registry::get(\OxidEsales\Eshop\Application\Model\Discount::class);

Registry::get('oxdiscount');

Registry::get(\OxidEsales\Eshop\Application\Model\Voucher::class);