edde-framework/edde-framework

View on GitHub
src/Edde/Framework.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
    declare(strict_types=1);

    namespace Edde;

    use Edde\Common\Object;

    /**
     * Information about framework hidden in this class.
     */
    class Framework extends Object {
        /**
         * return full version string
         *
         * @return string
         */
        public function getVersionString() {
            return $this->getVersion() . ' - ' . $this->getCodename();
        }

        /**
         * return current version of framework
         *
         * @return string
         */
        public function getVersion() {
            return '3.1.0.0';
        }

        /**
         * return current codename of framework
         *
         * @return string
         */
        public function getCodename() {
            return 'The Pooping Unicorn';
        }

        public function __toString() {
            return $this->getVersionString();
        }
    }