How to document PHP constants:
define('SOME_CONSTANT', 'constant value');
with Doxygen?
Just include a documentation block above the constant define() function call or const keyword like this:
<?php
/**
* Short Break Adventure Trip Sub Type Id
*/
const TRIP_SBA = 1;
/**
* Small Group Adventure Trip Sub Type Id
*/
define('TRIP_SGA', 2);
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With