src/ConfigurationReader/GeneratorOptions.php
public function setAddComments(array $addComments = [])
    {
        /**
         * If array is type array("author:john Doe","Release:1",)
         */
        $comments = [];
        foreach ($addComments as $index => $value) {
            if (is_numeric($index) && mb_strpos($value, ':') > 0) {
                list($tag, $val) = explode(':', $value);
                $comments[$tag] = $val;
            } else {
                $comments[$index] = $value;
            }
        }
        return $this->setOptionValue(self::ADD_COMMENTS, $comments);
    }
public function setAddComments(array $addComments = [])
    {
        /**
         * If array is type array("author:john Doe","Release:1",)
         */
        $comments = [];
        foreach ($addComments as $index => $value) {
            if (is_numeric($index) && mb_strpos($value, ':') > 0) {
                list($tag, $val) = explode(':', $value);
                $comments[$tag] = $val;
            } else {
                $comments[$index] = $value;
            }
        }
        return $this->setOptionValue(self::ADD_COMMENTS, $comments);
    }
public function setAddComments ( array $ addComments = [ ] ) { /**
         * If array is type array("author:john Doe","Release:1",)
         */ $ comments = [ ] ; foreach ( $ addComments as $ index => $ value ) { if ( is_numeric ( $ index ) && mb_strpos ( $ value , ':' ) > 0 ) { list ( $ tag , $ val ) = explode ( ':' , $ value ) ; $ comments [ $ tag ] = $ val ; } else { $ comments [ $ index ] = $ value ; } } return $ this -> setOptionValue ( self :: ADD_COMMENTS , $ comments ) ; }
Set current add comments option value
@throws \InvalidArgumentException
@param array $addComments
@return GeneratorOptions
Set current add comments option value