protected function initializeMoodle(InputInterface $input)
    {
        if (!$this->moodle) {
            $validate     = new Validate();
            $moodleDir    = realpath($validate->directory($input->getOption('moodle')));
            $this->moodle = new Moodle($moodleDir);
        }
    }
protected function initializeMoodle(InputInterface $input)
    {
        if (!$this->moodle) {
            $validate     = new Validate();
            $moodleDir    = realpath($validate->directory($input->getOption('moodle')));
            $this->moodle = new Moodle($moodleDir);
        }
    }
protected function initializeMoodle ( InputInterface $ input ) { if ( ! $ this -> moodle ) { $ validate = new Validate ( ) ; $ moodleDir = realpath ( $ validate -> directory ( $ input -> getOption ( 'moodle' ) ) ) ; $ this -> moodle = new Moodle ( $ moodleDir ) ; } }
Initialize the moodle property based on input if necessary.

@param InputInterface $input
Initialize the moodle property based on input if necessary .