public function getInstances()
    {
        if (null === $this->instances) {
            $this->instances = [];

            foreach ($this->getAll() as $className) {
                $className = '\\PHPSemVer\\Trigger\\' . str_replace('/', '\\', $className);

                $this->instances[] = new $className();
            }
        }

        return $this->instances;
    }
public function getInstances()
    {
        if (null === $this->instances) {
            $this->instances = [];

            foreach ($this->getAll() as $className) {
                $className = '\\PHPSemVer\\Trigger\\' . str_replace('/', '\\', $className);

                $this->instances[] = new $className();
            }
        }

        return $this->instances;
    }
public function getInstances ( ) { if ( null === $ this -> instances ) { $ this -> instances = [ ] ; foreach ( $ this -> getAll ( ) as $ className ) { $ className = '\\PHPSemVer\\Trigger\\' . str_replace ( '/' , '\\' , $ className ) ; $ this -> instances [ ] = new $ className ( ) ; } } return $ this -> instances ; }
Get all trigger instances from the config.

@return AbstractTrigger[]
Get all trigger instances from the config .