add abstract function php snippet