src/Charcoal/Admin/Script/Object/Table/AlterPrimaryKeyScript.php
protected function describeConversion(IdProperty $newProp, IdProperty $oldProp = null)
    {
        if ($oldProp) {
            $new  = $this->labelFromProp($newProp);
            $old  = $this->labelFromProp($oldProp);
            $desc = sprintf('Converting to %s from %s.', $new, $old);
        } else {
            $new  = $this->labelFromProp($newProp);
            $desc = sprintf('Converting to %s.', $new);
        }

        $this->climate()->comment($desc);

        return $this;
    }
protected function describeConversion(IdProperty $newProp, IdProperty $oldProp = null)
    {
        if ($oldProp) {
            $new  = $this->labelFromProp($newProp);
            $old  = $this->labelFromProp($oldProp);
            $desc = sprintf('Converting to %s from %s.', $new, $old);
        } else {
            $new  = $this->labelFromProp($newProp);
            $desc = sprintf('Converting to %s.', $new);
        }

        $this->climate()->comment($desc);

        return $this;
    }
protected function describeConversion ( IdProperty $ newProp , IdProperty $ oldProp = null ) { if ( $ oldProp ) { $ new = $ this -> labelFromProp ( $ newProp ) ; $ old = $ this -> labelFromProp ( $ oldProp ) ; $ desc = sprintf ( 'Converting to %s from %s.' , $ new , $ old ) ; } else { $ new = $ this -> labelFromProp ( $ newProp ) ; $ desc = sprintf ( 'Converting to %s.' , $ new ) ; } $ this -> climate ( ) -> comment ( $ desc ) ; return $ this ; }
Describe what we are converting to.

@param  IdProperty $newProp The new ID property to analyse.
@param  IdProperty $oldProp The previous ID property to analyse.
@return self
Describe what we are converting to .